Million web whois (using the interface for the million network to provide a legitimate interface)
Copy Code code as follows:
function Whois_hichina ($domain) {
Preg_match ("|<pre> (. +?)" </pre>|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= '. $domain.), $whois);
$whois [0] = str_replace (' Friendship tip: According to the requirements of the registration Board, the expired domain name may be in the Registrar automatic renewal phase, you see the domain name due date in this query for reference only <br/> Please <a href= "http:// Www.net.cn/has_client/userlogon/user_logon1.asp "target=" _blank "class=" LINK_GL "> enter the Member Area </a> view the actual expiration time of the domain name, And please renew the fee in time, thank you! ', ', ($whois [0]));/filter out this paragraph of text
return $whois [0]);
}
New Web whois (non-new network provided, only according to the new Web site URL modification implementation)
Copy Code code as follows:
function Whois_xinnet ($domain) {
Preg_match ("|<div class=" Lytableinfowrap ">" (. +?) </div>|is ", @file_get_contents (' http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp? Domainnamewhois= '. $domain. ' &nocode=nocode '), $whois);
return $whois [0];
}
}
Shanghai Telecom Test, feel a new network of inquiries to a little faster, and the million network some domain name query does not come out, the new network can also be queried!