Is there a quick dirty way to echo the hostname requested in an url? I've got a directory Aliased out in a number of virtual hosts in apache and would like the ability to have the hostname requested displayed on a page that lives in this directory using a php echo TIA Rob-
$HTTP_SERVER_VARS["HTTP_HOST"];
There is also
$HTTP_SERVER_VARS["SERVER_NAME"];
but that probably won't give you the virtual host's name.
Thanks much =)
Rob-