Re: Hostname

From: Date: Wed, 15 Dec 2004 16:46:48 +0000
Subject: Re: Hostname
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204409@lists.php.net to get a copy of this message
Chris Boget 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? thnx, Chris
$_SERVER['HTTP_HOST'] $_SERVER['SERVER_NAME'] http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server

« previous php.general (#204409) next »