Copy code The code is as follows:
//Get the current domain name:
echo $_SERVER[' SERVER_NAME'];
//Get the source URL, that is, click to go to the previous page URL of this page
echo $_SERVER["HTTP_REFERER"];
$_SERVER['REQUEST_URI'];//Get the current The suffix of the domain name
$_SERVER['HTTP_HOST'];//Get the current domain name
dirname(__FILE__);//Get the physical path of the current file
dirname(__FILE__)."/../"; //Get the upper-level physical path of the current file
?>
http://www.bkjia.com/PHPjc/327754.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327754.htmlTechArticleCopy the code as follows: ? //Get the current domain name: echo $_SERVER['SERVER_NAME']; // Get the source URL, that is, click to go to the previous page URL of this page echo $_SERVER["HTTP_REFERER"]; $_SERVE...