Php code for obtaining address bar information. Copy the code as follows :? Php obtains the domain name or host address echo $ _ SERVER [HTTP_HOST]. br; obtains the webpage address echo $ _ SERVER [PHP_SELF]. br; obtains the url parameter echo $ _ SERV
The code is as follows:
// Obtain the domain name or host address
Echo $ _ SERVER ['http _ host']."
";
// Obtain the webpage address
Echo $ _ SERVER ['php _ SELF ']."
";
// Obtain URL parameters
Echo $ _ SERVER ["QUERY_STRING"]."
";
// Detailed address of the source webpage
Echo $ _ SERVER ['http _ referer']."
";
?>
The http://www.bkjia.com/PHPjc/319669.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/319669.htmlTechArticle code is as follows :? 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 $ _ SERV...