Every Programmer and developer likes to discuss their favorite code snippets, especially when PHP developers spend several hours coding for webpages or creating applications, they know the importance of these codes. To save coding time, the editor collects some useful code snippets to help developers improve their work efficiency. 1) Whois query using PHP -- get Whois requests using PHP
Using this code, yo
Every programmer and developer likes to discuss their favorite code snippets, especially when PHP developers spend several hours coding for webpages or creating applications, they know the importance of these codes. To save coding time, the editor collects some useful code snippets to help developers improve their work efficiency. 1) Whois query using PHP -- get Whois requests using PHP
Using this code, yo
-types from a website. tries to Reg. exp. match emails by default, logging all results using log4j.Language: Java ,()LarbinLarbin is an HTTP web crawler with an easy interface that runs under Linux. It can fetch more than 5 million pages a day on a standard PC (with a good network ).Language: C ++ ,()Iii. Seo-related resources1. Domain Name Information Query★Query the information of the international top-level domain name (. aero ,. arpa ,. biz ,. com ,. coop ,. edu ,. info ,. int ,. museum ,. n
,. coop ,. edu ,. info ,. int ,. museum ,. net ,. can be queried through the domain name registrar authorized by ICANN, or directly to the InterNIC website, the URL isHttp://www.internic.com/whois.htmlHttp://www.iwhois.com/★To query whether a global top-level domain name has been registered, you can go to the following website (including the domestic domain name. cn ):Http://www.uwhois.com/cgi/domains.cgi? User = noads★Query the registration status o
,. can be queried through the domain name registrar authorized by ICANN, or directly to the InterNIC website, the URL isHttp://www.internic.com/whois.htmlHttp://www.iwhois.com/★To query whether a global top-level domain name has been registered, you can go to the following website (including the domestic domain name. cn ):Http://www.uwhois.com/cgi/domains.cgi? User = noads★Query the registration status of domestic domain names,Http://ewhois.cnnic.net
This afternoon, the new network today on a number of well-known sites, including well-known social networking sites 51.com, well-known it information platform it168.com, well-known blog hosting services blogbus.com domain name, to stop its domain name resolution, the new network said the site contains obscene pornography and other illegal information.
Currently through the InterNIC query these three domain whois
PHP domain name query code .? The motto of the php network technology supervisor is "three people," which must be my teacher. The code www.ctohome.com can be very SMART. I modified a small part to make it easier to use.
// The motto of the network technology supervisor: the trio must have our teacher. Http://www.ctohome.com
// This code can be said to be very SMART. I modified a small part to make it easier to use.
$ Moreinfolist = array (// storage WHOIS
Every Programmer and developer likes to discuss their favorite code snippets, especially when PHP developers spend several hours coding for webpages or creating applications, they know the importance of these codes. To save coding time, Xiaobian collected some useful code snippets to help develop 1) Whois query using PHP -- get Whois requests using PHP
Using this code, you can obtain
Network Technology leader motto: Three people, it must have my teacher Yan. Http://www.ctohome.com
This code can be said to be very smart, I changed the little part to make it easier to use.
$moreinfolist = Array (//The connection method for storing WHOIS query host
' At ' = ' www.ripe.net/cgi-bin/whois?query= ',
' Au ' = ' www.aunic.net/cgi-bin/whois.aunic? ',
' BM ' = ' www.bermudanic.bm/cgi-bin/BermudaNI
ultricies elit lacus quis ante. Lorem ipsum dolorSit amet, consectetur adipiscing elit. AliquamPrepolicullamcorper urna quis iaculis. Etiam ac massaSed turpis tempor luctus. Curabitur sed nibh eu elitMollis congue. Praesent ipsum diam, consectetur vitaeOrnare a, aliquam a nunc. In id magna pellentesqueTellus posuere adipiscing. Sed non mi metus, at laciniaAugue. Sed magna nisi, ornare in mollis in, mollisSed nunc. Etiam at justoin leo congue mollis.Nullam in neque eget metus hendrerit scelerisq
A PHPWhois domain name checks the function code. A Whois check code used in the previous PHP host domain name program to determine whether the queried domain name is registered. the Function includes most of the domain name suffixes, A Whois check code based on the suffix that is not used before in the PHP host domain name program is used to determine whether the queried domain name is registered. the Funct
Id euismod urna sodales .";
$ Compressed = gzcompress ($ string );
Echo "Original size:". strlen ($ string). "\ n ";
/* Prints
Original size: 800
*/
Echo "Compressed size:". strlen ($ compressed). "\ n ";
/* Prints
Compressed size: 418
*/
// Getting it back
$ Original = gzuncompress ($ compressed );
9. use PHP for Whois check
Function whois_query ($ domain ){
// Fix the domain name:
$ Domain = s
. ut malesuada lacus eu nulla bibendum id euismod urna sodales. "; $ compressed = gzcompress ($ string); echo" Original size :". strlen ($ string ). "\ n";/* prints Original size: 800 */echo "Compressed size :". strlen ($ compressed ). "\ n";/* prints Compressed size: 418 * // getting it back $ original = gzuncompress ($ compressed );
9. Use PHP for Whois check
Function whois_query ($ domain) {// fix the domain name: $ domain = strtolower (trim ($ dom
Use PHP to implement standard IPWhois queries. Due to the historical reasons of the Internet, apin is responsible for the overall planning of the entire network IP address and IP allocation management in parts of Africa in North America. correspondingly, whois.apin.net is due to the historical reasons of the Internet, apin is responsible for the overall planning of the entire network IP address and IP address allocation management in parts of North America and Africa. correspondingly, whois.apin
Websites often need to query the website's whois information. here we will introduce a whoisapi interface created using php. the method is also very simple. The following describes in detail. Here we get data from the data interface of HiChina or Xinnet, and process and output data through simple php text.
The code is as follows:
$ Domain = $ _ GET ['Q'];
Preg_match ("|
(. + ?)
| Is ", @ file_get_contents ('http: // www.xinnet.cn/Modu
Websites often need to query the website's whois information. here we will introduce a whoisapi interface created using php. the method is also very simple. The following describes in detail. Here we get data from the data interface of HiChina or Xinnet, and process and output data through simple php text.
The code is as follows:
$ Domain = $ _ GET ['Q'];
Preg_match ("|
(. + ?)
| Is ", @ file_get_contents ('http: // www.xinnet.cn/Modules/a
Nbsp; due to historical Internet reasons, apin is responsible for the overall planning of the entire network IP address and IP address allocation management in some regions in North America, correspondingly, whois.apin.net is the rootserver of IPwhois. The standard IPwhois query method is to first go to whois. apin.
Due to historical Internet reasons, apin is responsible for the overall planning of the entire network IP address and IP allocation manag
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 governance, and accordingly, whois.apin.net is the IP whois root server, the standard IP whois query method is , first query the whois.apin.net for which area the IP belongs to, and then query the
information on root name servers needed
; Initialize cache of Internet domain name servers
; (E.g. reference this file in the "cache ."
; Configuration file of BIND domain name servers ).
;
; This file is made available by InterNIC registration services
; Under anonymous FTP
; File/domain/named. root
; On server FTP. RS. INTERNIC. NET
;-OR-under Gopher at RS. INTERNIC
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.