It Worked An Hour Ago, Now It Doesn't ?

liunx

Guest
I have several PHP scripts that worked an hour ago, but don't now... The error is the same for all the pages -- here's an example:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec--><br /><br /><b>Warning</b>: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home2/tornado/public_html/grlevel3/validww.php</b> on line <b>5</b><br /><br /><br /><br /><b>Warning</b>: file(<!-- m --><a class="postlink" href="http://www.srh.noaa.gov/data/WNS/SEVSPC">http://www.srh.noaa.gov/data/WNS/SEVSPC</a><!-- m -->): failed to open stream: Permission denied in <b>/home2/tornado/public_html/grlevel3/validww.php</b> on line <b>5</b><br /><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Here's the code from that page (<!-- m --><a class="postlink" href="http://grlevel3.tornadocentral.com/validww.php">http://grlevel3.tornadocentral.com/validww.php</a><!-- m --> ):<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php <br />header('Content-Type: text/plain; charset=utf-8');<br />error_reporting(E_ALL);<br /><br />$wwfile = file('http://www.srh.noaa.gov/data/WNS/SEVSPC');<br />if (!$wwfile) { echo "File could not be opened!"; }<!--c2--></div><!--ec2--><br /><br />Again, I have 5-6 scripts that worked just fine an hour ago, but now they all give the error given above. Any help?<!--content-->
Are you sure the site you are pulling information from is currently active? The warnings would indicate that it is not.<!--content-->
That's what my first thought, but I checked the sites and they all work. <br /><br />For example, the script I copied above checks this site: <a href="http://www.srh.noaa.gov/data/WNS/SEVSPC" target="_blank">http://www.srh.noaa.gov/data/WNS/SEVSPC</a> , which works. <br /><br />Try this one: <a href="http://grlevel3.tornadocentral.com/metars.php?state=OK" target="_blank">http://grlevel3.tornadocentral.com/metars.php?state=OK</a><br />That script uses file('http://weather.cod.edu/obs/ok.metar') ... Checking that site -- <a href="http://weather.cod.edu/obs/ok.metar" target="_blank">http://weather.cod.edu/obs/ok.metar</a> -- shows that there is no problem with the actually remote site. :-/<br /><br />My other scripts pull sites from 3 or 4 different domains, all of which are currently working, and the scripts are still giving that same error. Did anything change on the servers? I think I'm on server 43, though I'm not entirely sure. I only ask because they've all worked just fine the past 9 months, but they all started giving that same error in the past 2 hours.<!--content-->
OK I made a test script that contains ONLY the following:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php <br />header('Content-Type: text/plain; charset=utf-8');<br />// error_reporting(E_ALL);<br /><br />$test = file('http://www.google.com');<br /><br />?><!--c2--></div><!--ec2--><br /><br />The script is at <a href="http://grlevel3.tornadocentral.com/test.php" target="_blank">http://grlevel3.tornadocentral.com/test.php</a> . If you go to the page, you get the following error:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br /><br /><b>Warning</b>:  file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home2/tornado/public_html/grlevel3/test.php</b> on line <b>5</b><br /><br /><br /><br /><b>Warning</b>:  file(http://www.google.com): failed to open stream: Permission denied in <b>/home2/tornado/public_html/grlevel3/test.php</b> on line <b>5</b><br /><!--c2--></div><!--ec2--><br /><br />It's really does look like something from the server-side that changed...<!--content-->
When you suspect that your problems are casued by a server-side change, the best place to get help is through the help desk. I'd say its time for a ticket.<br /><br />Good luck!!<!--content-->
Definitely open a ticket... your 2nd test file works on my account on a different server.<!--content-->
Thanks for the input guys. I've opened a ticket... Last I checked, the response was that it was being elevated to Level 2 support, but that was a couple hours ago. LOL How spoiled I am with TotalChoiceHosting support, that I usually get responses within 5 minutes so I get worried when this takes a couple of hours. :-)<!--content-->
Isn't that the truth! The Help Desk is very fast for most issues! :<!--content-->
For the record, he was all fixed up last night. Took longer than 5 minutes, but who's counting? <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--content-->
Never a doubt! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
Way to go <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/clapping.gif" style="vertical-align:middle" emoid=":clapping:" border="0" alt="clapping.gif" /><!--content-->
yay!!!!<br /><br />Three cheers for TCH!!<!--content-->
 
Back
Top