Domain availability php script

I need a simple domain (non)availability script-user types the domain into
a text box and selects the tld from a drop down-the script returns whether the
domain is available or not- it does NOT reveal the whois info - just a simple status check.

Thanks

Hi

use this to check a url:

<?
$handle   = curl_init("http://www.google.com");
    if (false === $handle){
    	
    	echo "fail";
    } else{
    	echo "found";
    	
    }
?>

kai555

Many domains are registered but do not resolve as there are no name servers set up for them, that wouldn’t work.