Jump to content

Recommended Posts

Posted

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?

Posted (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 by WxGuy1
Posted

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...

Posted

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!!

Posted

Definitely open a ticket... your 2nd test file works on my account on a different server.

Posted

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. :-)

Posted

Isn't that the truth! The Help Desk is very fast for most issues! :

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...