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
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
"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
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 ",
See on the net, try a few, all can use, send over
212.175.113.59 8080 highly anonymous whois Turkish cz88.net
211.152.35.23 8080 highly anonymous whois, Shanghai cz88.net
196.33.246.154 8080 highly anonymous whois cz88.net South Africa
217.218.42.13
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= '
Whois is simply a database that queries whether the domain name has been registered, as well as the details of the registered domain name (such as domain name owner, domain name registrar, domain name registration date, and expiration date, etc.).
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: //
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: // www.xinnet.
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.