You could use the $_SERVER['HTTP_HOST'] variable. Best regards, Jim Mullen Web: http://www.iDimensionz.com Twitter: http://twitter.com/iDimensionz
Kal Durak wrote: > > > 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. > [Non-text portions of this message have been removed]