For an application based on Zend Framework I use apaches SetEnv
in .htaccess
. I use this on test, staging and production servers like so:
SetEnv APPLICATION_ENVIRONMENT production
On the staging server I couldn't read this env var in PHP. However when I did a var_dump( $_ENV )
in php I got the value but the key was prepended with REDIRECT_
becoming
REDIRECT_APPLICATION_ENVIRONMENT
Can anybody explain why this is happening, and how I can prevent this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…