Results 1 to 3 of 3
Oct 20, 2009, 15:36 #1
Error: php_network_getaddresses: getaddrinfo failed: Name or service not known
All was working fine till today, but suddenly I am getting this error today.
Warning: file() [function.file]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/content/...... on line 242
I am using GoDaddy hosting
PHP Ver is 5.
In php.ini allow_url_fopen = on
Can anyone guide me where i am getting wrong.
Here is the actual php code:
$GrabURL = $id;
$GrabStart = '<span id="intelliTxt">';
$GrabEnd = '<div id="fbconnect">';
$file = file($GrabURL);
$contents = '';
foreach($file as $num=>$line)
$start = $num;
$contents .= $line;
Oct 20, 2009, 19:02 #2
- Join Date
- Dec 2007
- 0 Post(s)
- 0 Thread(s)
Can you access the URL from the command line? (using wget or curl)
This might not be a PHP problem at all.
Oct 21, 2009, 02:20 #3
I can access the url from browser. It seems everything working now.