I am running virtual servers under Apache. I have an application that needs to run under several of the servers. I need it to retrieve the hostname that it is running under.
I noticed that if you run phpinfo.php, under apache2handler, there is a listing for hostname. This is exactly what I need, but I haven't been able to find how to retrieve that variable. Any help would be greatly appreciated.