This will print out all the variables that PHP has available run it and you will see your options...
PHP Code:
<?
ob_start();
print_r($GLOBALS);
$str = ob_get_contents();
$str=nl2br($str);
ob_end_clean();echo $str;
?>
but I think
echo 'http://'.$HTTP_SERVER_VARS[HTTP_HOST].$HTTP_SERVER_VARS[REQUEST_URI];
will be what you are looking for?
(note 4.02+ & you can do this)
echo 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];