Timeline for php_network_getaddresses: getaddrinfo failed: Name or service not known
Current License: CC BY-SA 2.5
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 18, 2010 at 8:24 | history | edited | zombat | CC BY-SA 2.5 |
added 133 characters in body
|
Apr 18, 2010 at 8:20 | comment | added | zombat |
@Rob - elias is right, you could just ignore the return value. I updated my answer with a crude fsockopen() method of manually sending HTTP request headers if you were worried about the overhead of making a full HTTP request (which probably isn't much, unless that URL is returning a ton of info).
|
|
Apr 18, 2010 at 8:18 | comment | added | Rob | Thought so. I'll give it a shot and come back | |
Apr 18, 2010 at 8:18 | history | edited | zombat | CC BY-SA 2.5 |
added 405 characters in body
|
Apr 18, 2010 at 8:18 | comment | added | elias | it's fine, you can just ignore the return value of file_get_contents. | |
Apr 18, 2010 at 8:14 | comment | added | Rob | Well I don't need to retrieve the contents, only submit the GET data. Would that particularly matter, or would it be fine anyway? i.e. file_get_contents("domain.com/file.php?action=this&get=that"); | |
Apr 18, 2010 at 8:11 | history | answered | zombat | CC BY-SA 2.5 |