By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,051 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,051 IT Pros & Developers. It's quick & easy.

PHP Server Environment Variables seem to not registering..

P: n/a
How to get Windows XP Server(where PHP Server is running) environment
variables?

I use the echo $_ENV['PATH'] seem to not working. The same for any other
environment variables.

I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
[ not posted to alt.php ]

Artco News wrote:
How to get Windows XP Server(where PHP Server is running) environment
variables?

I use the echo $_ENV['PATH'] seem to not working. The same for any other
environment variables.

I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks


Are you running in safe mode?

Check your php.ini for
safe_mode
safe_mode_allowed_env_vars

and maybe
safe_mode_protected_env_vars

--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Jul 17 '05 #2

P: n/a
In you ini file you should have an attribute called

variables_order =

If you use the "recommended" php.ini, the Environment variables are not
included. Simply add an "E" to the list. See below:
; This directive describes the order in which PHP registers GET, POST,
Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right,
newer
; values override older values.
variables_order = "EGPCS"

Hope this helps,
CF

"Artco News" <ar*******@verizon.net> wrote in message
news:Y2**************@nwrdny02.gnilink.net...
How to get Windows XP Server(where PHP Server is running) environment
variables?

I use the echo $_ENV['PATH'] seem to not working. The same for any other
environment variables.

I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks

Jul 17 '05 #3

P: n/a
Thanks ... I'll do that.

"ChronoFish" <de**@chronofish.com> wrote in message
news:Ll9qb.1658$oB3.280@lakeread03...
In you ini file you should have an attribute called

variables_order =

If you use the "recommended" php.ini, the Environment variables are not
included. Simply add an "E" to the list. See below:
; This directive describes the order in which PHP registers GET, POST,
Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right,
newer
; values override older values.
variables_order = "EGPCS"

Hope this helps,
CF

"Artco News" <ar*******@verizon.net> wrote in message
news:Y2**************@nwrdny02.gnilink.net...
How to get Windows XP Server(where PHP Server is running) environment
variables?

I use the echo $_ENV['PATH'] seem to not working. The same for any other
environment variables.

I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.