This article describes how to query whois information in php. It involves the related skills of querying php domain names. For more information, see
This article describes how to query whois information in php. It involves the related skills of
"Original": before using php to query domain name whois information, a whois query tool was specially deployed on the plog.cn server to implement "plog.cn 1-6 Super-expecting to delete short domain names. PS: method of use
How to query whois information in php
This example describes how to query whois information in php. Share it with you for your reference. The details are as follows:
Php is used to query the whois information list.
?
1 2 3 4 5 6 7 8 9 10
Due to historical Internet reasons, apin is responsible for the overall planning of the entire network IP address and IP allocation management in some African regions in North America. Correspondingly, whois.apin.net is the root server of IP whois,
Here we obtain data from the data interface of the WAN or new network, and then output it through the simple text processing of PHP.
Copy CodeThe code is as follows:
$domain = $_get[' Q '];
Preg_match ("
(. +?)
Is ", @file_get_contents ('
Here we obtain data from the data interface of the WAN or new network, and then output it through the simple text processing of PHP.
Copy Code code as follows:
$domain = $_get[' Q '];
Preg_match ("|
(. +?)
|is ",
Due to the historical reasons for the Internet, Apin is responsible for the overall network IP planning as well as the North American region also has some of Africa's IP allocation management, and accordingly, whois.apin.net is the IP whois root
Million-net Whois (the interface used to provide a legal interface to the WAN)
Copy the Code code as follows:
function Whois_hichina ($domain) {Preg_match ("|
(.+?)|is ", @file_get_contents (' http://whois.hichina.com/cgi-bin/whois?domain= '
Due to the historical reasons for the Internet, Apin is responsible for the overall network IP planning as well as the North American region also has some of Africa's IP allocation management, and accordingly, whois.apin.net is the IP whois root
Here we get data from the data interface of hichina or xinnet, and process and output data through simple php text.Copy codeThe Code is as follows:$ Domain = $ _ GET ['q'];Preg_match ("| (. + ?) | Is ", @ file_get_contents ('HTTP: //
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.