Uwe Schindler kirjoitti:
> 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?
The stuff is pretty generic, just check how it's done for sapi/cgi/cgi_main.c in
function sapi_cgi_activate(). (IIRC :)
I think I even put some comments in there..
--Jani
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php