Re: Per-directory PHP configuration

From: Date: Mon, 24 Aug 2009 23:37:38 +0000
Subject: Re: Per-directory PHP configuration
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-45376@lists.php.net to get a copy of this message
On Tue, Aug 25, 2009 at 1:09 AM, Edward Z. Yang<ezyang@mit.edu> wrote: > Excerpts from Pierre Joye's message of Mon Aug 24 18:21:32 -0400 2009: >> Please point out the differences and list what else you may need. I do >> not think we will introduce another feature but improve the current >> implementation. > > As I understand it, the features are not compatible.  One takes an > explicit list of directories to scan, while the other dynamically > determines it based on the current working directory and the > user's home directory.  (There are some other features on top > of this, but that's the essential functionality).  Please let me > know if I am mistaken. There is two modes: - It looks in the current directory for ini file (named by default .user.ini) and scan the parent directories up to the document root to apply rules from other .user.ini. - new directives in php.ini using sections, like [PATH=/home/www/site1] or [HOST=...] >> It is easy to make htscanner support ini format instead :) > > That is true.  However, it would be nice to see this go into the > core, so as to encourage wide use (also, htscanner is something > of a hack, quite frankly.) It is in the core now, and from an implementation point of view there are very few differences. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#45376) next »