Even if it's only one file, have that file include the other necessary files... so two.php would include one.php, three.php, etc. You could even build the logic into two.php so it decides which other files to include based on any number of conditions.
---John Holmes... > -----Original Message----- > From: Alex Vincent [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 24, 2002 11:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] RFE: Multiple auto_prepend_file statements to work in > Apache > > 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 (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php