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
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
5. Container ComponentsIn this section we will discuss the request processing component: engine, virtual host, context component.5.1. EngineThe engine represents a Catalina instance of the servlet engine that can be run and contains the core
I. Common commands under Linux: File and directory operationsbasename: Remove the path and extension from the file nameCD: Switch the current working directory to the specified directoryCHGRP: Changing the group to which the file belongschmod:
1. Introduction to HTTP
What is HTTP? Hypertext Transfer Protocal, a hypertext transfer protocol, has been widely used on WWW since 1990. It is the most widely used protocol on WWW today. Its current version is 1.1.
HTTP is an application layer
PHP network operation function summary, php function summary. PHP network operation function summary, php function summary checkdnsrr-perform DNS communication check for the specified host (domain name) or IP address closelog-disable system log link
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.