Re: [PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Dietrich Bollmann
Hi Iv and Dmitri, Thanks for your help! The solution to my problem came under the shower - as usual :) I have to admit that I would prefer to not tell you the truth ... but: I did all my configuration in the httpd.conf of another project ... ... :) :( :) :) ...sometimes it is wiser to sleep

Re: [PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Dmitri
If you are on apache2 server, try |$myvar = apache_getenv("|APP_CONFIG_SECTION|"); echo $myvar and see if it has value that you expect | Dietrich Bollmann wrote: Hi, I have the following directive in my virtual host configuration: SetEnv APP_CONFIG_SECTION "development" and would like to

Re: [PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Iv Ray
I had similar problem some time ago, and there was some solution, which I can't remember now. Do you still have the problem? I'll can have a look, if still needed. Iv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SetEnv directives in VirtualHost configuration not accessible in PHP

2008-05-16 Thread Dietrich Bollmann
Hi, I have the following directive in my virtual host configuration: SetEnv APP_CONFIG_SECTION "development" and would like to access the value from PHP with getenv('APP_CONFIG_SECTION') or $_SERVER['APP_CONFIG_SECTION'] or whatever. But none of them work. Is there any PHP / Zend / Apache2