作者:媛媛天下_945 | 来源:互联网 | 2017-05-13 02:31
Whois的PHP代码。这是WHOIS查找的代码。?functionwhois_request($server,$query){$data;$fpfsockopen($server,43);if($fp){fputs($fp,$query.rn);while(!feof($fp)){$data.fread
这是WHOIS查找的代码。
function whois_request($server, $query) {
$data = "";
$fp = fsockopen($server, 43);
if($fp) {
fputs($fp, $query."rn");
while(!feof($fp)) {
$data .= fread($fp, 1000);
}
fclose($fp);
}
return $data;
}
?>
Server:
(ie: whois.networksolutions.com) Domain:
(ie: wackowoh.com) if($action == "query") {
$data = whois_request($server, $query);
echo "Sent $query to $server.
";
echo "Output:
$data
";
}
?>
http://www.bkjia.com/PHPjc/629319.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/629319.htmlTechArticle这是WHOIS查找的代码。 ? function whois_request($server, $query) { $data = ; $fp = fsockopen($server, 43); if($fp) { fputs($fp, $query.rn); while(!feof($fp)) { $data .= fread...