On Tue, Mar 25, 2008 at 8:43 PM, Uwe Schindler <[EMAIL PROTECTED]> wrote: > > > > As of php 5.3, it is possible to have a per directory configuration, > > > > either using the system php.ini or using a .htaccess-like php.ini > > > > (.user.ini). The concept is based on what you have in htscanner but > > in > > > > a much better way (same syntax than in any php.ini). The goal is to > > > > enable this feature in all SAPIs. > > > > > I am sure the new per directory configuration should work with > > LiteSpeed > > > SAPI. However, if it needs to scan each directory repeatedly for each > > > request, it will slow down PHP even further. > > > > It is cached using a user defined ttl. > > Hi Pierre, > > How do I enable another SAPIs for this per-dir ini files? How are they > named? Found no documentation about it. > I would like to upgrade my NSAPI module (Sun Webservers) for it. As Sun > Webservers do not know .htaccess files, PHP is hard to configure for > specific directories (it is possible, but you must map all ini entries as > extra parameters in the php5_execute NSAPI call, which can be made per-dir, > in the central config files). A per-dir config by "magic files" like > ".php.ini" in script folder would be good. > Is there a generic solution for SAPIs?
Not yet sadly, it is on our todo for 5.3. It is now available only for fcgi but we have to provide for each sapi. We will then finally have one portable solution to configure PHP on a per directory basis. Any help is welcome, if you like to give it a try :) It should not be very hard to do it (sapi hook and move the common parts in php main code afair). I can give a hand too but definitively not in the next 2 weeks. But we have to finish it before end of April to be ready for 5.3 (~). Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php