I want to check if an URL exists using PHP. for eg. If someone enters www.adflkjweoifj123912873.com, I want to check if this domain has a website, or its live on the web.
Thanks Jean
Curl: curl_getinfo($curl,CURLINFO_HTTP_CODE);
See for implementation details http://www.php.net/curl
If you only want to verify it is registered you could do a gethostbyaddr(), which doesn't mean the IP is reachable or the site exists.