Page 1 of 1

file_get_contents(): php_network_getaddresses: getaddrinfo

Posted: Sun Aug 08, 2010 1:28 pm
by kendall
Hi people in trying to run a

Code: Select all

echo file_get_contents("http://www.example.com");
I get the errors
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname

Warning: file_get_contents(http://www.example.com): failed to open stream: Operation timed out3
Now this was working for a while now before and its only by "chance" that I stumbled upon this error. Someone said its a DNS error but is the DNS Error on my scripts part? my Host part? or ISP part? What could it be? What does it mean and How can it be resolved?

Re: file_get_contents(): php_network_getaddresses: getaddrin

Posted: Sun Aug 08, 2010 2:07 pm
by kendall
Just to note using an IP address seems to work but unfortunately i'm using API's and subdomains so substituting IPs won't work :(