PHP code to obtain address bar information_PHP tutorial

WBOY
Release: 2016-07-21 15:47:56
Original
914 people have browsed it

Copy code The code is as follows:

//Get the domain name or host address
echo $_SERVER[ 'HTTP_HOST']."
";
//Get the web address
echo $_SERVER['PHP_SELF']."
";
//Get the URL parameters
echo $_SERVER["QUERY_STRING"]."
";
//Detailed address of the source webpage
echo $_SERVER['HTTP_REFERER']."
";
?> ;

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319846.htmlTechArticleCopy the code as follows: ?php //Get the domain name or host address echo $_SERVER['HTTP_HOST']." br"; //Get the web address echo $_SERVER['PHP_SELF']."br"; //Get the URL parameters echo $_SERV...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template