NYCPHP Meetup

NYPHP.org

[nycphp-talk] Magical disappearing environment

csnyder at chxo.com csnyder at chxo.com
Wed Jun 16 16:27:51 EDT 2004


I recently inherited a PHP app that relies on shell environment variables
(shudder) for some key settings.

I'm using a fresh install of PHP 4.3.7 with php-recommended.ini. phpinfo() is
listing the environment variables correctly (under "Environment") but the $_ENV
array is empty when accessed in a script.

What gives? Am I missing the crucial ini setting that turns on $_ENV?

Thanks,

   csnyder



More information about the talk mailing list