[thelist] Domain whois PHP + Code

Andrew Maynes andrew at humanbehaviour.co.uk
Tue Jan 14 04:35:00 CST 2003


here is the code: the $domain.".co.uk" is doing nothing at all....

if($type == 'all' or $type == 'com')
   {
      $comarray =
array($domain.".co.uk",$domain.".com",$domain.".net",$domain.".org");
      $comcount = count($comarray);
      $i=0;
      for ($i=0;$i<$comcount;$i++) {
         $domname = $comarray[$i];
         $query   = $domname."@".$whoisserver;
         $result  = "";
         $ns = fsockopen($whoisserver,43); fputs($ns,"$domname\r\n");
         while(!feof($ns)) $result .= fgets($ns,128); fclose($ns);
         if (eregi($whoisnomatch,$result)) { dispav($domname); } else
 dispun($domname,$whoisserver); }
      }

Andrew




More information about the thelist mailing list