Introduction: This is Php.Program: Virtual Domain Name Service DIY detailed page, describes and PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Editor's note: friends who have used NetEase's my.yeah.net domain name to switch to the service must be interested in its powerful functions? Once you have applied for your own virtual domain name, such as coolfish.yeah.net, visitors can use this
Global array
echo $_server["Http_host"];
The bbs.it-home.org will be output.
Copy CodeLocal tests will output localhost.Method 2, using the Parse_url function;
";p Rint_r ($arr); echo"";? >The output is an array with
echo server[' server_name '];//get the source URL, that is, click to the previous page of this page URL
echo server["Http_referer"];
server[' Request_uri '];//gets the suffix of the current domain name
server[' Http_host '];//get
This is said domain name registrar is not a domain name distributor or agent, first say things happen background, in the second half of 2015 for a job, (this article may have a little verbose, do not like to ignore), the first day of work, completed
The following code can get the domain name from the URL
Example: http://bkjia.com/live/q.html
Get bkjia.com
The following is the referenced content:function Get_domain ($url) {$pattern = "/[\w-]+\. (COM|NET|ORG|GOV|CC|BIZ|INFO|CN) (\.
The PHP regular expression retrieves the domain name from the url. The following code obtains the domain name from the URL, for example, liehuo.netliveq.html. the following liehuo.net references: functionget_domain ($ url) {$ pattern [w-] +. (com |
The PHP method for obtaining domain names and domain name IP addresses is recently used in a project to obtain domain names and IP addresses. There are roughly the following methods. You can use the built-in function gethostbyname to obtain the IP
To use the rewrite module, you must first install or load the rewrite module. There are two ways to install the rewrite module directly when compiling apache. The other is to install apache in DSO mode when compiling apache, and then use the source
If you want to use the rewrite module, you must first install or load the rewrite module. There are two ways to compile Apache when the direct installation of rewrite modules, not one is compiled Apache in the DSO mode to install Apache, and then
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.