You can shorten that to

<?=$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']?>

<?=$_SERVER['SERVER_NAME']?>

<?=$_SERVER['REQUEST_URI']?>

Which is easier to read.


___________________
See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too. Free hosting