Re: getting $_ENV variables

From: Date: Sat, 12 May 2007 19:57:10 +0000
Subject: Re: getting $_ENV variables
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-254857@lists.php.net to get a copy of this message
tedd wrote:
At 11:54 AM +0100 5/10/07, C.R.Vegelin wrote:
All I want is to check the $_ENV['OS'] within PHP scripts.
If all you want to do is to find out what the user's OS is, try this: $_SERVER('HTTP_USER_AGENT') Do print_r($_SERVER) to see all it contains.
He wanted to tell the OS of the *server*, hence using a local environment setting. Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk "Never trust a computer you can't throw out of a window"

« previous php.general (#254857) next »