Domain whois query function [million NET and new network]

Source: Internet
Author: User

Domain whois query function [million NET and new network]
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)
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];
}
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.