View Single Post
Old 2004-03-31, 05:21 AM   #2
Opti
I Didn't Do It
 
Opti's Avatar
 
Join Date: Aug 2003
Location: au
Posts: 795
Send a message via ICQ to Opti
here's a simple script that gets results of a networksolutions whois query.


save code in a file called whois.php and upload to your server.

usage: whois.php?domain=domain.com

PHP Code:
<?php 
if (trim($domain) <> "") {
   
$domain trim($domain);
   
$fp fsockopen("whois.networksolutions.com"43$errno$errstr30);
   if (!
$fp) {
     echo 
"$errstr ($errno)";
   } else {
     
fputs($fp"$domain\r\n");
     print 
"<pre>\r\n";
     while (!
feof($fp)) {
         echo 
fread($fp,128);
     }
     print 
"</pre>";
     
fclose ($fp);
   }
}
?>
Opti is offline   Reply With Quote