<?php //当前页面 http://localhost/ceshi/url.php?id=365 //获取域名或主机地址  echo $_SERVER['HTTP_HOST']; //localhost echo "&l...