Re: auto_prepend/append in htaccess....
| From: | Jonathan Villa | Date: | Fri, 14 Nov 2003 03:36:09 +0000 |
| Subject: | Re: auto_prepend/append in htaccess.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169614@lists.php.net to get a copy of this message | ||
Anyone have any ideas on this?
On Thu, 2003-11-13 at 11:32, 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 jvilla@isdesigndev.com
> 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? Or would be better
> to simply include one file and in that file include the others.
>
> What should the file be relative to? Or should it be an absolute value?
>
> I know that constants don't work outside of scripts, but I would like to
> make this as smooth as possible.