Pierre-Alain Joye wrote:
>
> If you need only
> constants/variable, use php_value in your php.ini/httpd.conf, or set an
> environment variable.

I tried using php_value but it seems that it can only be used (in the 
Apache httpd.conf file) to set *real* php config variables.

I tried:

<IfModule mod_php4.c>
   php_value JC_TEST_STR "THIS IS COMING FROM APACHE"
</IfModule>

and just plain

php_value JC_TEST_STR "THIS IS COMING FROM APACHE"

in the httpd.conf file

But get_cfg_var("JC_TEST_STR") returned false ... so I could not access 
the value.

Jc


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to