<u>复制代码</u> 代码如下:<br><?php <BR>//获取域名或主机地址 <br>echo $_SERVER['HTTP_HOST']."<br>"; <br>//获取网页地址 <br>echo $_SERVER['PHP_SELF']."<br>"; <br>//获取网址参数 <br>echo $_SERVER["QUERY_STRING"]."<br>"; <br>//来源网页的详细地址 <br>echo $_SERVER['HTTP_REFERER']."<br>"; <br>?> <br>