Whois Tool
if($domain) { $domain = trim($domain); if(substr(strtolower($domain), 0, 7) == "http://") $domain = substr($domain, 7); if(substr(strtolower($domain), 0, 4) == "www.") $domain = substr($domain, 4); if(ValidateIP($domain)) { $result = LookupIP($domain); } elseif(ValidateDomain($domain)) { $result = LookupDomain($domain); } else die("Invalid Input!"); echo "
\n” . $result . “\n
\n”;
}
?>