Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84115 invoked from network); 25 Mar 2008 19:55:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 19:55:48 -0000 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.179 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.179 mho-02-bos.mailhop.org Received: from [63.208.196.179] ([63.208.196.179:62448] helo=mho-02-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/1B-28012-2C859E74 for ; Tue, 25 Mar 2008 14:55:47 -0500 Received: from cs163208.pp.htv.fi ([213.243.163.208] helo=[127.0.0.1]) by mho-02-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JeFFB-000NN0-2W; Tue, 25 Mar 2008 19:55:37 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 213.243.163.208 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19AeOxMXiKOGE27p/Xtd1tWpjTh6iY8tcY= Message-ID: <47E958C0.9060407@sci.fi> Date: Tue, 25 Mar 2008 21:55:44 +0200 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Uwe Schindler CC: 'George Wang' , internals@lists.php.net References: <47E80EB9.60900@litespeedtech.com> <698DE66518E7CA45812BD18E807866CE0165A861@us-ex1.zend.net> <20080325100552.00o51usgg04oogw0@mail.litespeedtech.com> <47E93244.4060001@litespeedtech.com> <000001c88eb0$80dbdce0$a401a8c0@VEGA> In-Reply-To: <000001c88eb0$80dbdce0$a401a8c0@VEGA> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Inclusion of PHP LiteSpeed SAPI in the standard PHP distribution? From: jani.taskinen@sci.fi (Jani Taskinen) 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