Hello,
I'm wondering if there's a way to pass a value from apache to php
through httpd.conf. I've noticed that php settings can be changed
using php_value. Is there a way to send a value that is not one of the
settings to php in this way? Something like:
php_value my_dogs_name "sparky"
Then $my_dogs_name becomes globally accessible to all scripts on the
server. Specifically, I'd like to keep the name of the mysql db name
in the portion of httpd.conf associated with the virtual server that
uses it. I don't think I can use any of the php_value mysql.* settings
because I'm using PEAR DB. Any ideas? Thanks!
I'm wondering if there's a way to pass a value from apache to php
through httpd.conf. I've noticed that php settings can be changed
using php_value. Is there a way to send a value that is not one of the
settings to php in this way? Something like:
php_value my_dogs_name "sparky"
Then $my_dogs_name becomes globally accessible to all scripts on the
server. Specifically, I'd like to keep the name of the mysql db name
in the portion of httpd.conf associated with the virtual server that
uses it. I don't think I can use any of the php_value mysql.* settings
because I'm using PEAR DB. Any ideas? Thanks!
Comment