Version: 1
Type: Full Script
Category: Networking
License: GNU General Public License
Description: Very simple whois.
<form method="POST" action= "<?PHP echo($PHP_SELF); ?>"> Find an available domain name from Network Solutions: <P> <INPUT name="domain" SIZE="20" MAXLENGTH="22"> <P> <INPUT TYPE="SUBMIT" VALUE="Check name"> <INPUT TYPE="RESET" VALUE="Clear"> </P> </FORM> <hr> <font size="2"><pre> <? //This function was found at : http://www.phpwizard.net/phpTidbits/ function whois($domain, $server="www.geektools.com") { $fp = fsockopen ($server, 43, &$errnr, &$errstr) or die("$errno: $errstr"); fputs($fp, "$domainn"); while (!feof($fp)) echo fgets($fp, 2048); fclose($fp); } ?> <? If (isset ($domain)){ echo (whois($domain)); } ?> </pre></font>