测试网址: http://localhost/blog/testurl.php?id=5
//获取域名或主机地址 echo $_SERVER['HTTP_HOST']."<br>"; #localhost
//获取网页地址 echo $_SERVER['PHP_S...
PHP
⋅
5年以前
⋅
890次阅读
//获取域名或主机地址 echo $_SERVER['HTTP_HOST']."<br>"; #localhost
//获取网页地址 echo $_SERVER['PHP_S...