note 98260 deleted from reserved.variables.environment by danbrown

From: Date: Fri, 04 Jun 2010 17:37:56 +0000
Subject: note 98260 deleted from reserved.variables.environment by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169894@lists.php.net to get a copy of this message
Note Submitter: Abraham ---- If the $_ENV array is empty, use the following: if (strlen(getenv("HOSTNAME"))) $MachineName = getenv("HOSTNAME"); else if (strlen(getenv("COMPUTERNAME"))) $MachineName = getenv("COMPUTERNAME"); else $MachineName = "";

« previous php.notes (#169894) next »