Php provides multiple methods to obtain the current page address (see the tutorial. Php provides multiple methods to obtain the current page address (with a tutorial). php currently provides multiple methods to obtain the current page address. php
PHP $_server[' php_self ']$_server[' Php_self ') represents the location address of the current PHP file relative to the root of the Web site, and is related to document root.Suppose we have the following URLs, $_server[' php_self ') results
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
PHP get current page address multiple methodsThere are a number of ways to get the current page address in PHP, including some examples of collected tutorials, recorded.Reference Tutorial:Get the full URL of the current page in PHPPHP three ways to
: This article mainly introduces php programming notes. if you are interested in PHP tutorials, please refer to them. Three methods for php to obtain POST data
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese
Php programming notes-three methods for obtaining POST data from small_123 php
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese character to pinyin source code
Php traverses the Directory, generates the md5
Three ways to get post data from PHP
PHP image plus watermark source code
One of the simplest examples of Php+ajax+json
PHP Chinese Pinyin Source code
PHP iterates through directories, generates MD5 values for each file in the directory, and writes
In PHP we want to get the current page full URL address need to use a few common PHP global variables function, mainly with $_server[] These variables, I will show you a get the current page full URL address program bar.
First look at some
$_server['
When using PHP to write a program, we often want to get the URL of the current page. The following provides a function to get the current page URL and how to use it:Example One:
After you define the function, you can call it directly:
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.