I'm sorry if this will be a rehash of previous discussions, but I
haven't been able to locate anything in the archives.

I find auto_prepend_file invaluable, especially when used in http.conf
within <VirtualHost> or <Location> directives.  One limitation I've run
into, however, is the ability to "stack" auto_prepend_file directives.

For instance (all running as a DSO of course):

<VirtualHost 10.10.10.10>
   Servername something.com
   php_admin_value auto_prepend_file /usr/local/www/top.inc
   <Location /special>
      php_admin_value auto_prepend_file
/usr/local/www/special/inner.inc
   </Location>
</VirtualHost>

Now while that works [as expected] (only inner.inc is called), I'm
curious if there is a way to stack the calls.  Meaning:

-- For all requests to that vhost, top.inc would also be included.
-- For requests to /special within that vhost, inner.inc would then
also be included, in sequence.

One major advantage to this is that a virtual host (or just a
directory/location even) can enforce certain code to be run, building a
nicely maintainable, hierarchally formed environment.

I'm not very familiar with the Apache SAPI, so I'm not sure of the
feasibility of this.  One alternative, that should be easy to implement
I'd imagine, would be to allow auto_prepend_file to take multiple files
(deliminated by a colon, for instance), with PHP including each in
listed sequence.  While not as elegant as the previous solution, this
should be doable, no?

Any feedback appreciated,



=====
Hans Zaunere
New York PHP
http://nyphp.org
[EMAIL PROTECTED]

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to