Re: Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution?
| From: | Jani Taskinen | Date: | Tue, 25 Mar 2008 19:55:44 +0000 |
| Subject: | Re: Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36518@lists.php.net to get a copy of this message | ||
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 butThe 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.. --Janiina much better way (same syntax than in any php.ini). The goal is to enable this feature in all SAPIs.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?I am sure the new per directory configuration should work withLiteSpeedSAPI. 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.