Re: PHP 4.0 Bug #6789 Updated: $HOSTNAME variable not recognized anymore

From: Date: Mon, 16 Oct 2000 15:23:46 +0000
Subject: Re: PHP 4.0 Bug #6789 Updated: $HOSTNAME variable not recognized anymore
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35148@lists.php.net to get a copy of this message
On 16 Oct 2000 sniper@php.net wrote: > ID: 6789 > Updated by: sniper > Reported By: harry@forbess.com > Status: Closed > Bug Type: PHP options/info functions > Assigned To: > Comments: > > No feedback. > Try using this instead: $HTTP_ENV_VARS["HOSTNAME"] > > --Jani > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-09-21 07:18:30] sniper@php.net > Please try <?php phpinfo() ;?> and check the Environment-section for HOSTNAME. > And please include your configure line and php.ini file here. > > --Jani > > --------------------------------------------------------------------------- > > [2000-09-17 09:52:24] harry@forbess.com > we have a little script that allows our pages to know if they are on our dev server or > production server. This script ceased to function because the variable $HOSTNAME does not return > anything > > --------------------------------------------------------------------------- > > > Full Bug description available at: http://bugs.php.net/?id=6789 > > > How about 'posix_uname()["hostname"]'? -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.dev (#35148) next »