Re: php_admin values solution
| From: | Tim Traver | Date: | Fri, 07 May 2004 19:09:17 +0000 |
| Subject: | Re: php_admin values solution | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185678@lists.php.net to get a copy of this message | ||
Curt,
This is an apache module that dynamically determines the data directories for a particular incoming request based upon the Host header.
After that directory is determined, then I set the admin value of things like "open_basedir" for php.
This prevents me from having to make an entry for every virtual host in the config file. As long as the directory exists, then apache will serve it up...
Tim.
At 11:46 AM 5/7/2004, Curt Zirzow wrote:
* Thus wrote Tim Traver (tt@simplenet.com): Just in case anyone wants to know the solution, I found one on the apache list... Apparently, from within an apache module, one can use the function zend_alter_ini_entry("open_basedir", 13, path, strlen(path), 4, 16); I am curious as why you want to make a module to have it override admin set settings in php userland. There is a reason why admin values are set. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php