On 5/9/07, C.R.Vegelin <[EMAIL PROTECTED]> wrote:
I get nothing when using: echo $_ENV['OS'];
Also nothing when using: print_r($_ENV);
However, phpinfo(); show a full list of ENV settings.
How to get $_ENV variables ?
I am using PHP version 5.2.0.

You can get it other ways:

php -r 'system("set|grep OS");'
HOSTNAME=neptune.local
HOSTTYPE=powerpc
OSTYPE=darwin8.0
POSIXLY_CORRECT=y



--
Greg Donald
http://destiney.com/

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

Reply via email to