function One:
Million-net Whois (the interface used to provide a legal interface to the WAN)
function Whois_hichina ($domain) {
Preg_match ("|
(. ?)
|is ", @file_get_contents (http://whois.hichina.com/cgi-bin/whois?domain=. $domain.), $whois);
$whois [0] = str_replace (friendly tip: According to the requirements of the board, expired domain name may be in the Registrar auto-renewal period, you see in this query the domain name due date for reference only
Please enter the member area to see the actual expiry time of the domain name, and please timely renewal, thank you! , ($whois [0]);//filter out this paragraph of text
return $whois [0];
}
Function call
echo Whois_hichina (www.ite5e.com)
function Two:
New network Whois (non-new network provided, only based on the new Web site URL modification implementation)
function Whois_xinnet ($domain) {
Preg_match ("| (.?) | Is ", @file_get_contents (http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois=. $domain . &nocode=nocode), $whois);
return $whois [0];
}
Function call
echo whois_xinnet (www.ite5e.com)
?>
http://www.bkjia.com/PHPjc/486184.html www.bkjia.com true http://www.bkjia.com/PHPjc/486184.html techarticle function One: PHP//Universal WHOIS (the interface used to provide a legitimate interface for WAN) function Whois_hichina ($domain) {Preg_match ("|pre (.?)" /pre|is ", @file_get_contents (Http://whois.hichin ...