Re: Hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Dec 2004 10:28:16 -0600, Chris Boget <chris.boget@xxxxxxxx> wrote:
> In earlier versions of PHP, you could use the $HOSTNAME
> global variable to get the server/machine name that is running
> Apache/PHP.  However, that variable is no longer working
> and I can't seem to find a replacement in any of the super global
> variables.  Is there one?  How can you get the server/machine
> name?

$_SERVER['HOSTNAME']

-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux