This article mainly introduces the function of php to obtain the complete URL address of the current page. if you are interested, you can refer to the function that we often want to obtain the URL of the current page when compiling a program using
? Php // Obtain the domain name or HOST address echo $ _ SERVER ['http _ host']. br; // Obtain the webpage address echo $ _ SERVER ['php _ SELF ']. br; // Obtain the url parameter echo $ _ SERVER [QUERY_STRING]. br; // detailed address of the source
PHP to obtain the complete URL of the current page javascript implementation:
Top. location. href top-level window address
This. location. href address of the current window
PHP implementation # test URL: http: // localhost/blog/testurl. php? Id = 5
Use libevent and libev to improve network application performance
Use libevent and libev to improve network application performance
Manage multiple UNIX Network ConnectionsMartin C. Brown, writer, FreelanceMartin Brown has been a professional
Javascript implementation:
Top. Location. href top-level window addressThis. Location. href address of the current window
PHP implementation
# Test URL: http: // localhost/blog/testurl. php? Id = 5// Obtain the domain name or host
It mainly obtains some information about the address bar, domain names, port parameters, etc.
CopyCode The Code is as follows: // Obtain the domain name or host address
Echo $ _ server ['HTTP _ host']. " ";
// Obtain the webpage address
Echo $ _
Node. js BASICS (10) use the net module and Readline module to implement Socket communication, and node. jsreadline
The socket communication of Node. js is very similar to that of C ++ and Java. Those who have learned the socket communication of
First, load balanced LVS Basic introductionLVS is the abbreviation for Linux virtual server, which is the Linux virtualization server. This is an open source project initiated by Dr. Zhangwensong, whose official website is
There are many solutions, but the Libevent library and the Libev library can greatly improve performance and event handling capabilities. In this article, we discuss the basic structures and methods used to use and deploy these solutions in UNIX®
Source: www.ido321.com__6.html recently. pagination is required in the project. The paging function is often used. Therefore, it is encapsulated as a function. Paging and packaging ** $ pageType paging type 1: Digital paging 2: Text paging * data
I have learned a lot about the development of proxy servers during this time.UDPThe implementation of the proxy service is also convenient for me to refer to later.
I. Communication Model
1Non-proxy Communication Model
This is
PHP obtains the complete URL implementation code of the current page. Javascript implementation: Copy the code as follows: top. location. href top-level window address this. location. href current window address PHP implementation: Copy the code as
Parse PHP to obtain the implementation code of the current website and domain name. Copy the code as follows :? Obtain the current domain name: echo $ _ SERVER [SERVER_NAME]; obtain the source URL, that is, click the previous page URL echo $ _
Summary of the basic knowledge of PHP. Some of these PHP concepts are difficult to understand at the beginning. I listed them all in the hope that they could help some people with less thorns on the way forward. 1. variablevariables.
1. variable
Php obtains the complete URL of the current page, and php obtains the current url. Php gets the complete URL of the current page. When php gets the current url and uses PHP to write programs, we often want to get the URL of the current page. The
Some of these PHP concepts are difficult to understand at the beginning. I listed them all in the hope that they could help some people with less thorns on the way forward.
1. variable variables (variable)
Variable_variables.php
Copy codeThe Code
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.