get_headers()
throws a warning if the URL being checked is invalid. E.g.,
get_headers('http://nonexistingrubbish-url.com');
Warning: get_headers(): php_network_getaddresses: getaddrinfo failed: No such host is known
Is it possible to suppress this error withou using @
?
My main goal is to check whether a URL exist or not but I don't want to use the @
suppressor.