Php function: Domain name whois query (query using interfaces of HiChina and Xinnet ). Function 1 :? Php HiChina whois (the interface used to provide valid interfaces for HiChina) functionwhois_hichina ($ domain) {preg_match (| pre (.?) Pre | is, @ file_get_contents (whois. hichin function 1:
// HiChina whois (the interfaces used provide valid interfaces for HiChina)
Function whois_hichina ($ domain ){
Preg_match ("|
(. ?)
| Is ", @ file_get_contents (http://whois.hichina.com/cgi-bin/whois? Domain =. $ domain.), $ whois );
$ Whois [0] = str_replace
Please go to the member area to check the actual expiration time of the domain name, and renew it in time. thank you !, , ($ Whois [0]); // filter out the text
Return $ whois [0];
}
// Function call
Echo whois_hichina (www.ite5e.com)
Function 2:
// Xinnet whois (not provided by Xinnet, but modified based on the url of Xinnet's own website)
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)
?>
Why :? Php // HiChina whois (the interface used to provide valid interfaces for HiChina) function whois_hichina ($ domain) {preg_match ("| pre (.?) /Pre | is ", @ file_get_contents (http://whois.hichin...