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, $errstr, 30);
   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);
   }
}
?>