WxGuy1 Posted May 18, 2006 Posted May 18, 2006 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 /><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 /> <b>Warning</b>: file(http://www.srh.noaa.gov/data/WNS/SEVSPC): failed to open stream: Permission denied in <b>/home2/tornado/public_html/grlevel3/validww.php</b> on line <b>5</b><br /> Here's the code from that page (http://grlevel3.tornadocentral.com/validww.php ): ><?php header('Content-Type: text/plain; charset=utf-8'); error_reporting(E_ALL); $wwfile = file('http://www.srh.noaa.gov/data/WNS/SEVSPC'); if (!$wwfile) { echo "File could not be opened!"; } Again, I have 5-6 scripts that worked just fine an hour ago, but now they all give the error given above. Any help? Quote
TCH-Bruce Posted May 19, 2006 Posted May 19, 2006 Are you sure the site you are pulling information from is currently active? The warnings would indicate that it is not. Quote
WxGuy1 Posted May 19, 2006 Author Posted May 19, 2006 (edited) That's what my first thought, but I checked the sites and they all work. For example, the script I copied above checks this site: http://www.srh.noaa.gov/data/WNS/SEVSPC , which works. Try this one: http://grlevel3.tornadocentral.com/metars.php?state=OK That script uses file('http://weather.cod.edu/obs/ok.metar') ... Checking that site -- http://weather.cod.edu/obs/ok.metar -- shows that there is no problem with the actually remote site. :-/ 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. Edited May 19, 2006 by WxGuy1 Quote
WxGuy1 Posted May 19, 2006 Author Posted May 19, 2006 OK I made a test script that contains ONLY the following: ><?php header('Content-Type: text/plain; charset=utf-8'); // error_reporting(E_ALL); $test = file('http://www.google.com'); ?> The script is at http://grlevel3.tornadocentral.com/test.php . If you go to the page, you get the following error: ><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 /> <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 /> It's really does look like something from the server-side that changed... Quote
abinidi Posted May 19, 2006 Posted May 19, 2006 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. Good luck!! Quote
Deverill Posted May 19, 2006 Posted May 19, 2006 Definitely open a ticket... your 2nd test file works on my account on a different server. Quote
WxGuy1 Posted May 19, 2006 Author Posted May 19, 2006 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. :-) Quote
abinidi Posted May 19, 2006 Posted May 19, 2006 Isn't that the truth! The Help Desk is very fast for most issues! : Quote
TCH-Tim Posted May 19, 2006 Posted May 19, 2006 For the record, he was all fixed up last night. Took longer than 5 minutes, but who's counting? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.