PHP获取地址栏信息的代码 dn001 2009-05-12 00:59:41 <?php//获取域名或主机地址echo $_SERVER['HTTP_HOST']."<br>";//获取网页地址echo $_SERVER['PHP_SELF']."<br>";//获取网址参数echo $_SERVER["QUERY_STRING"]."<br>";//来源网页的详细地址echo $_SERVER['HTTP_REFERER']."<br>";?> 标签: