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 Tutorial "target=" _blank "class=" LINK_GL "> enter 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)
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 tutorial? Domainnamewhois= '. $domain. ' &nocode=nocode '), $whois);
return $whois [0];
}
}