This article describes how PHP can obtain parameters such as the current host, domain name, URL, path, and port, if you are interested, please refer to this article. This article describes how PHP can obtain parameters such as the current host,
For centos to configure the virtual host domain name, first comment out DocumentRoot/var/www/html. for example, we configure two virtual hosts with IP192.168.0.3. Edit/etc/httpd/conf/httpd at www.2cto.com first. conf configuration file
Configure the virtual host domain name under the Linux environmentThe first step:Under the root directory (that is, the root directory)LS (view file)CD into etc directoryFind Hosts FileVI hosts open the Hosts file and edit itAt the bottom of the
Linux can ping IP but cannot ping host domain name resolution reprinted December 25, 2013 10:24:27 13749.vi/etc/nsswitch.confhosts:files Dnsnetworks:files changed to: hos Ts:files DNS Winsnetworks:files if not the same, in the hosts: the original
This article mainly and we introduce how PHP obtains the current host, domain name, url, path, port and other parameters, with a certain reference value, interested can understand, hope to help everyone.
Lab Environment:
Test the domain name
This article mainly introduces how PHP obtains the current host, domain name, url, path, port and other parameters, has a certain reference value, interested can understand the next
Lab Environment:
Test the domain name Daxiangtravel.com,apache
--------------------------------------------------------------------------------------------------------------------------------------------------------------Vi/etc/nsswitch.confHosts:files DNSNetworks:filesChange to:Hosts:files DNS
Http://www.blogjava.net/WshmAndLily/articles/143450.html
1. Set the Domain Name of the local hostHosts is a system file without an extension. It can be opened using notepad and other tools. Its function is to associate some common website domain
search, I want to use, paste it out, look at the wood has a problem ah! Echo $HTTP _host is the domain name to output!
function pma_getenv ($var _name) {
if (isset ($_server [$var _name]) {
return $_server [$var _name];
The code is as follows
Copy Code
Discount Code: PrivacypleaseFree Private whoisDiscount Code: GIF$10.25 com/net domain registration and renewal fee
Main features of Name.com
1. A powerful domain name management platform:
Don't say much, we look at the code directly
Gets the domain name or host address
echo $_server[' Http_host ']. ";
Get page address
echo $_server[' php_self ']. " ";
Gets the URL parameter
echo $_server["Query_string"]. " ";
Get user
There is no rule in the meaning of a standard, and it cannot be a square. We should be familiar with this and analyze our previous server usage situations. The common phenomenon is that we are very casual about the use of servers, and there is no
Php obtains the url and parameters of the current page. Php obtains the url and parameters of the current page. to obtain the complete address of the current page, we need to perform many operations, such as the HTTP or HTTPSphp file and the host
Due to the recent more and more like to PowerShell, in the spare time, tidy up some of the common classic examples to share to everyone:
1. Active Directory, listing domain information
#===========================================# list Domain
Python has evolved a broad ecosystem that enables Python
ProgrammerLife has become simpler and less repetitive in their work of making rounds. The same philosophy applies to the work of tool developers, even if the tools they develop do not appear
1. server Status server A: 192.168.1.1 server B: 192.168.1.22. create A synchronous user host Domain A: 192.168.1.2 User Name A: sync_a Password A: aaa host Domain B: 192.168.1.1 user name B: sync_ B password B: bbb at least assign the following
PHP gets the current page URL address and parameters to get the full address of the current page we have to go through a lot of operations such as HTTP or https PHP files and path host domain name query parameters finally become. Get
I. Overview SSLSSL (Secure Socket Layer) Secure Socket Layer. In the early days, netscape wanted various protocols working at the application Layer to implement data security during data transmission, the half-layer structure introduced between the
Python has evolved into an extensive ecosystem that makes life easier for Python programmers and reduces repeated rounds. The same idea applies to the work of tool developers, even if the tools they developed do not appear in the final program. This
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.