How does php obtain the domain name IP address? the code function first looks at the following code. The two outputs are the same:
$ Dm = 'www .phpfensi.com ';
$ Ip = gethostbyname ($ dm );
Echo gethostbyaddr ($ ip );
Echo $ ip;
Gethostbyname syntax:
String gethostbyname (string $ hostname)
Returns the ipv4 ad
PHP code for domain name whois query (data source HiChina, Xinnet ). The code for copying the HiChina whois code is as follows: functionwhois_hichina ($ domain) {preg_match (| pre (. + ?) Pre | is, @ file_get_contents (whois HiChi
Php obtains the code of the root domain name of the URL. For more information, see.
The code is as follows:
/*** Get the root domain name** @ Author lonely* @ Create 2011-3-11* @ Version 0.1* @ Lastupdate lonely* @ Package Sl
Php obtains the code of the root domain name of the URL. For more information, see.
The code is as follows:
/**
* Get the root domain name
*
* @ Author lonely
* @ Create 2011-3-11
* @ Version 0.1
* @ Lastupdate lonely
* @ Packag
Domain name query code announcement domain name query code announcement
// The motto of the network technology supervisor: the trio must have our teacher. Http://www.ctohome.com
// This code
Domain name query code announcement domain name query code announcement
// The motto of the network technology supervisor: the trio must have our teacher. Http://www.ctohome.com
// This code
Domain name query code announcement// 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 query host connection method'At' => 'www .ripe.
Reference Link: http://blog.csdn.net/iefreer/article/details/44293711This problem is usually caused by an incorrect path to the Fastcgi_script_name access script.Especially with subdirectories, for example, for YII frameworks, the path is usually project/webThen if you access/project/index.php in the URL, then the script_name in the Nginx configuration will be the full path: project/index.phpIf the code in your configuration is as follows:Fastcgi_para
Use the regular expression of PHP to get the domain name in the URL, give two small examples, simple and practical, the need for friends, come to see it.URL a generic resource identifier (Uniform Resource Identifier, referred to as "URI") for positioning. Object groupings: ^ ([^:/?#]+):)? ( //([^/?#]*))? ([^?#]*) (? ([^#]*))? (# (. *))? 12 3 4 5 6 7 8 9Example 1,
The output URL data is:%s\ n ", Var_e
Domain Name Lookup by IP address, which is usually an IP address query function of bing, that is, IP Address: 222.222.222.222Writing php code becomes// Call Method$ Result = getResult ("124.205.228.114 ");Print_r ($ result );Function getContent ($ url ){$ Content = file_get_contents ($ url );Return $ content;}Function getResult ($ ip ){$ Pagesize = 10;$ Page = 1;
Provides various official and user-released code examples and code reference. You are welcome to exchange and learn.
The latest authorization system 2.0 source code with IP + domain name dual verification more high-end more secure, do genuine essential! Update the commercia
Domain Name Query Code publication
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.
Set current page full address is: Http://www.jb51.net/aaa/bbb.aspx?id=5name=kelli"http://" is the protocol name"Www.jb51.net" is a domain name"AAA" is the station roll call"Bbb.aspx" is the name of the page (file name)"Id=5name=kelli" is a parameter"1" To get the full URL (p
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/BermudaNIC/rwhois_query_get.pl?query_text= ',
' ch ' =
This article mainly introduces functions for detecting ip addresses and domain names in php and js, so that you can detect ip addresses and domain names in programs. For more information, see
This article mainly introduces functions for detecting ip addresses and domain names in php and js, so that you can detect ip addresses and
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.