Dear Sirs,

I'm wondering if it might be possible to prepend multiple files to PHP 
scripts using the .htaccess file.

For instance, the following:

php_value auto_prepend_file "two.php"
php_value auto_prepend_file "../one.php"

will produce a prepend from only ../one.php .  This may be technically 
correct, but it's also a bit limited.  It may be better to allow for 
multiple files to be prepended in this fashion, if Apache will let us.

Is it possible for PHP to support such a feature?  Being able to prepend 
multiple PHP scripts to a certain PHP script, based on which directories 
and subdirectories the main script is in, would be useful to me.

If anyone here has studied the W3C DOM Level 2 Events specification, you 
may see the relationship between current practices with PHP and the 
suggested model above as the difference between event handlers and event 
listeners.  (If you haven't seen DOM-2 Events, don't worry about it.)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to