On Thu, Nov 13, 2003 at 11:32:34AM -0600, Jonathan Villa wrote:
: 
: I want to prepend a configuration file which is located outside of my
: document root into my scripts.  I can use auto_prepend_file, but I'm not
: sure how do it with an htaccess file or a virtual host entry.. I would
: prefer VHost.
: 
: Anyway, this is what I am trying/assuming...
: 
: <VirtualHost 127.0.0.1 127.0.0.1>
:         ServerAdmin [EMAIL PROTECTED]
:         DocumentRoot /var/www/testdomain/www
:         ServerName testdomain
:         ErrorLog logs/testdomain-error_log
:         CustomLog logs/testdomain-access_log combined
:         <IfModule mod_php4.c>
:                 auto_prepend_file=header.inc
:               auto_append_file=footer.inc
:         </IfModule>
: </VirtualHost>
: 
: Is it possible to append/prepend more than file?

I don't think this is possible with auto_prepend_file.

: Or would be better
: to simply include one file and in that file include the others.

This sounds workable.

: What should the file be relative to?  Or should it be an absolute value?

It can be a relative pathname, in which case PHP will search its defined
include_path.  Absolute pathnames should be okay too.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to