Re: getting $_ENV variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux