Instead of returning false for me to handle, it returns this error:PHP Code:$d = file_get_contents($url);
//display error if site can't be loaded
if (!$d) {
return false;
}
How can I make it simply return false instead displaying this error?Code:[phpBB Debug] PHP Notice: in file public_html/functions.php on line 3810: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known [phpBB Debug] PHP Notice: in file public_html/functions.php on line 3810: file_get_contents(http://a.com/) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known


Reply With Quote
haha

Bookmarks