Ok... I found it... but not quite what I like. I found this function (thanks to WebWorkz) that needs not only the domain name but also the extension to be written. I changed the form a little bit so the extension is selected by the visitor from a drop down menu but I don't know what to change in the function to use it. Here it is:
function whois ($a_server, $a_query, $a_port=43) { $available = "No match"; $a_query = str_replace("www.", "", $a_query); $a_query = str_replace("http://", "", $a_query); $sock = fsockopen($a_server,$a_port); IF (!$sock) { echo ("<b>Could Not Connect To Server.</b>"); } fputs($sock,"$a_query\r\n"); while(!feof($sock)) $result .= fgets($sock,128); fclose($sock); IF (eregi($available,$result)) { echo ("<font color=\"blue\"><b>$a_query is available.</b></font>"); echo ("<BR>"); echo ("<BR>"); echo ("<font class=\"bod\"></font>Domain Check Copyright:"); echo ("<BR>"); echo ("<BR>"); echo ("2002 WebWorkz Network, Inc. All Rights Reserved.</font>"); } ELSE { echo ("<font color=\"red\"><b>$a_query is not available.</b></font>"); echo ("<BR>"); echo ("<BR>"); echo ("<font class=\"bod\">Domain Check Copyright:"); echo ("<BR>"); echo ("<BR>"); echo ("2002 WebWorkz Network, Inc. All Rights Reserved.</font>"); } } The domain variable is $query and the extension I want to add is passed as $ext... any thoughts? Thanks in advanced. "Cesar Aracena" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi all, > > Anyone knows about anyPHP script to add a domain check option to a web site > like almost any hosting company has? I'm looking into hotcripts.com but > everything offered serves also like a registering script for the available > domains and I just want to inform my visitors if the domain they entered is > available or taken... that's all. > > Thanks in advanced, > ___________________________ > Cesar L. Aracena > Commercial Manager / Developer > ICAAM Web Solutions > 2K GROUP > Neuquen, Argentina > Tel: +54.299.4774532 > Cel: +54.299.6356688 > E-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php