Home > Backend Development > PHP Tutorial > Whois PHP code_PHP tutorial

Whois PHP code_PHP tutorial

WBOY
Release: 2016-07-13 17:12:52
Original
797 people have browsed it

这是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

";
}
?>

www.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...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template