RE: [PHP] Hostname

From: Date: Wed, 15 Dec 2004 16:50:33 +0000
Subject: RE: [PHP] Hostname
Groups: php.general 
Request: Send a blank email to php-general+get-204411@lists.php.net to get a copy of this message
$_SERVER['SERVER_NAME'] 'SERVER_NAME' The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. -----Original Message----- From: Chris Boget [mailto:chris.boget@wild.net] Sent: 15 December 2004 16:28 To: PHP General Subject: [PHP] Hostname 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ________________________________________________________________________ This message has been checked for all known viruses by the CitC Virus Scanning Service powered by SkyLabs. For further information visit http://www.citc.it ___ ________________________________________________________________________ This message has been checked for all known viruses by the CitC Virus Scanning Service powered by SkyLabs. For further information visit http://www.citc.it ___

« previous php.general (#204411) next »