Jump to content

jiggens

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jiggens's Achievements

Member

Member (2/5)

0

Reputation

  1. Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for name@domain.com in C:\Inetpub\wwwroot\output\mail.php on line 10 Message delivery failed....
  2. I have tried pretty much everything to get my php mail to work. I have set my php.ini file to my local ip address, localhost, public ip address, internal dns name, MX record. No matter what i put in there i am no able to send my email. I am using windows IIS6 with smtp service installed. SMTP works fine and will send outside and inside e-mail addresses. I tried doing a simple php mail script and it fails every time. What am i missing ? phpinfo file is correct and has the local ip address of the smtp server which is the same server. Do i need to edit permissions or anything ?
  3. I am trying to setup hyperlink using get_file_contents for the url http://bloomburg.com/news/breakingnews/ I also want to have it update each time i thought i had it but i keep getting NO DATA its dying on me. <?php // Corys Tempblog_bloomberg.php // THE DATA FEED $home = 'http://www.bloomberg.com/news/breakingnews/'; // GET THE FEED $data = file_get_contents($home); // GET RID OF THE UNWANTED STUFF $xstr1 = '<div class="contentbox">'; $xstr2 = '</div>'; $text = explode($xstr1, $data); $data = $text[1]; $text = explode($xstr2, $data); $data = $text[0]; // FIND FIRST USEFUL INFORMATION $psum = '<p class="summ">'; $pos = strpos($data, $psum); if ($pos === FALSE) die('NO DATA'); $data = substr($data, $pos); // CLEAN UP THE LINKS $data = str_replace('/apps/news', 'http://www.bloomberg.com/apps/news', $data); // USE THE PARAGRAPH TAGS TO BREAK THIS TEXT INTO AN ARRAY $data = str_replace('</p>', '', $data); $data = str_replace('<br>', '', $data); $xstr3 = '<p class="summ">'; $text = explode($xstr3, $data); // ITERATE OVER THE TEXTS (COUNT LIMITED) foreach ($text as $pointer => $data) { if ($pointer > 5) break; echo "<p>"; echo $data; echo "</p>\n"; } ?>
  4. I am working on Windows 2003 server, I have php and mysql installed. PHP and Mysql is working but when i try to navigate to a website i get the sonic wall login pages. Could this have something to do with my ISS configuration or my Sonicwall? Has anyone ever ran into this problem that could get me some insight on why my webpages wont browse through IIS. I have tried from different browsers as well as setup my sites in the hostfile. The reason i think this is a problem because my php code seems to fail loading a new page even though i can ftp in and all. This all worked months ago but the systems admin put a new Sonicwall in, could this be the cause of my problems?
  5. I have IIS 6.0 with the SMTP service running. I have tested SMTP through telnet and it works fine, it will e-mail inside the domain and outside the domain.
  6. I am using windows 2003 server with iis6 i have php 5 and mysql 5 installed and i am trying to get the sendmail function to work but its not. I'm wondering if i have something wrong in my php.ini file Could someone take a look at it. My drive configuration is IIS 6 SMTP server is on C Drive while my form is on the D drive, the code is working correctly its creating a message to send but my server isn't picking up on it PHP.ini Config mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters =
  7. ok, i got that i understand that but i remove the img source i get http://homes.pacificscene.com/browse/javascript%20onclick= So, i don't understand why thats happening?
  8. <?php $window = "'http://homes.pacificscene.com/popup.php?type=maps&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'"; if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/images/browse/maps/" . $ID . ".jpg")) { print '<p><a href="javascript:;"><img border="0" src="http://homes.pacificscene.com/images/browse/maps/' . $row[0] . '.jpg" onclick="MM_openBrWindow(' . $window . ')" />View Map</a></p>'; }?> Its showing up as a image instead of a link, am i missing something? http://homes.pacificscene.com/browse/community.php?ID=43
  9. How is that going to only put it when the community ID 43 exists on the page, should i show you the rest of code on my page?
  10. I am still new to PHP and was wondering how i would put in a specifc link to a pdf file on my page to show up under one set of data but not the other. <?php if (mysql_fetch_row(mysql_query("SELECT * from psh_communities WHERE status='Current' and area='San Diego'")) == "" || !$result) { print "<p>Coming Soon</p><p> </p>"; } else { print "<table border='0' cellspacing='0' cellpadding='5'>"; while($row = mysql_fetch_row($result)) { print "<tr><td valign='top' align='center'><a href='community.php?ID=" . $row[0] . "'><img src='../images/browse/logos/" . $row[0] . "-TH.jpg' alt='" . $row[1] . "' border='0' /></a></td>"; print "<td valign='top'><p><span class='comm-header-exception'>" . $row[1] . "</span><br />"; print $row[5] . "<br />"; print "<a href='community.php?ID=" . $row[0] . "'>View Details</a></p>"; print "</td></tr>"; } print "</table>"; } ?> Under view details i want to put another link for Self-Qual Form and the location is http://homes.pacificscene.com/browse/selfqualform/ and i just want to add it as hyperlink for community.php?ID=43 and no others. Could someone give me a hand on how to do this?
  11. Ok i have slight problem with this line of code i cant figure out how to get this to work correctly without creating a whole new table in my DB which shouldnt be required. http://homes.pacificscene.com/browse/community.php?ID=43 I have a community that has to have the word Building in the Place of Model. Really i didnt see the problem with building or model, but it needs to be done. <?php if($row[0] == '&siteID=43') { print "<td width='135'><strong>Building</strong></td>"; print "<td>" . $row[1] . "</td></tr>"; } else { print "<td width='135'><strong>Model</strong></td>"; print "<td>" . $row[1] . "</td></tr>"; }?> Is there a better way to do this? any advice is appreciated
  12. Seems like my img src is sticking in there after deletion, so its deleting the file but not from the mysql database, is that correct? <td align="right" valign="top"><div align="right">Logo:</div></td> <td align="left" valign="top"><img src='http://homes.pacificscene.com/images/browse/logos/40.jpg' /><input type='submit' name='deleteImage' value='Delete Logo' /><input type="hidden" name="MAX_FILE_SIZE" value="30000" /><br /><input name='newLogo' type='file' size='40' /><input type='submit' name='uploadNewLogo' value='Upload' /></td> </tr>
  13. Help, My php file upload works great on mozilla, but is not working correctly on Internet Explorer if i upload a image its getting to the server but on the webpage and i refresh my page its there, but when i delete the image it hold the the space on the page and and all is display is a red X. It uploads correctly and deletes but not until i refresh the page, will it disappear. <?php if(array_key_exists('deleteImage', $_POST)) { if ($_POST['deleteImage'] == "Delete Map") { unlink('/Inetpub/wwwroot/homes/html/images/browse/maps/'. $ID . '.jpg'); unlink('/Inetpub/wwwroot/homes/html/images/browse/maps/'. $ID . '-TH.jpg'); } elseif ($_POST['deleteImage'] == "Delete Logo") { unlink('/Inetpub/wwwroot/homes/html/images/browse/logos/'. $ID . '.jpg'); unlink('/Inetpub/wwwroot/homes/html/images/browse/logos/'. $ID . '-TH.jpg'); } elseif ($_POST['deleteImage'] == "Delete Features List") { $query = "SELECT * from psh_communities WHERE ID = $ID"; $result = mysql_query($query); $row = mysql_fetch_row ($result); $query = "UPDATE psh_communities SET features = 'NULL' WHERE ID = $ID"; $result = mysql_query($query); unlink('/Inetpub/wwwroot/homes/html/browse/features/'. $row[10]); } elseif ($_POST['deleteImage'] == "Delete Brochure") { $query = "SELECT * from psh_communities WHERE ID = $ID"; $result = mysql_query($query); $row = mysql_fetch_row ($result); $query = "UPDATE psh_communities SET brochure = 'NULL' WHERE ID = $ID"; $result = mysql_query($query); unlink('/Inetpub/wwwroot/homes/html/browse/brochures/'. $row[8]); } elseif ($_POST['deleteImage'] == "Delete Banner") { unlink('/Inetpub/wwwroot/homes/html/images/browse/banners/'. $ID . '.jpg'); } } ?> Source of Maps <td align="right" valign="top">Location/Map: </td> <td align="left" valign="top"><img src='http://homes.pacificscene.com/images/browse/maps/14.jpg' /><input type='submit' name='deleteImage' value='Delete Map' /><br /><input name='newMap' type='file' size='40' /><input type='submit' name='uploadNewMap' value='Upload' /></td> </tr>
  14. <?php $window = "'http://homes.pacificscene.com/popup.php?type=floorplans&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'"; if (file_exists("http://homes.pacificscene.com/images/browse/floorplans/" . $row[0] . ".jpg")) { print '<tr><td><a href="javascript:;" onclick="MM_openBrWindow(' . $window . ')">Floorplan</td></a>'; print "<td> </td></tr>"; ?> This piece of code is what i am having the must trouble with. Renderings work correctly, but the floorplans aren't.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.