Jump to content

php_network_getaddresses


drisate

Recommended Posts

I am having a very weird problem ... i am trying to check if a remote images existe ou not. I am using this code

 

function url_exists($url) {
$header_response = get_headers($url, 1);
if ( strpos( $header_response[0], "404" ) !== false ){
return false;
}else{
return true;
}
}

 

but it returns:

php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

 

I cant seem to be able to find anywhere a way to fix this issue ... I tryed all sorts of difrent functions on the web an none seems to work so there must be something wrong with the server ...

 

Ex: the following image needs to be fetched http://mls.cameleonmedia.info/SIA/MT8603541.jpg

Link to comment
https://forums.phpfreaks.com/topic/246996-php_network_getaddresses/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.