//host url
echo "1:".$_SERVER['HTTP_HOST']."<br>";
//page url
echo "2:".$_SERVER['PHP_SELF']."<br>";
//request query string
echo "3:".$_SERVER["QUERY_STRING"]."<br>";
//become url
//echo $_SERVER['HTTP_REFERER']."<br>";
echo "4:".$_SERVER["REQUEST_URI"]."<br>";
echo "5:".$_SERVER["SERVER_NAME"]."<br>";
echo "6:".$_SERVER["SERVER_PORT"]."<br>";