php_network_getaddresses: getaddrinfo failed: Name or service not known
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-04-18T08:02:38Z
Indexed on
2010/04/18
8:13 UTC
Read the original article
Hit count: 491
Here is a snippet of my code
$fp = fsockopen($s['url'], 80, $errno, $errstr, 5);
if($fp){
fwrite($fp, $out);
fclose($fp);
When I run it, it outputs:
unable to connect to www.mydomain.net/1/file.php:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known
I can't figure out why. Any help would be greatly appreciated.
EDIT: I forgot to mention that I'm using this to submit GET data to the $s['url']
© Stack Overflow or respective owner