Is there a site or a webpage that has a list of environmental variables?
Or I just need the variable that outputs the entire URL.
Thanks
Check out :
http://www.php.net/manual/en/language.variables.predefined.php
Information and links are within that page too. To view the ones available on your server, run phpinfo() :
<?php
phpinfo()
?>
It will provide some very useful information.
note: HTTP_HOST may not always be set.
echo $HTTP_HOST,$SCRIPT_NAME;