Re: setting things in htaccess
| From: | Joe Conway | Date: | Sun, 17 Sep 2000 05:12:39 +0000 |
| Subject: | Re: setting things in htaccess | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17056@lists.php.net to get a copy of this message | ||
Yes, it works great. I use it on one of my sites. My .htaccess file, in the
root of the site, looks like:
php_value auto_prepend_file "include/inc_header.php"
php_value auto_append_file "include/inc_footer.php"
Hope this helps,
Joe
-----Original Message-----
From: Jeremy Gault <jgault@wingnet.net>
To: php-general@lists.php.net <php-general@lists.php.net>
Date: Saturday, September 16, 2000 9:52 PM
Subject: [PHP] setting things in htaccess
>Hi,
>
> I'm wondering, is it possible to set the auto_prepend_file in
>.htaccess files? I'm setting up a virtual host site of my own, and would
>like to be able to setup an auto_prepend_file for everything on my site
>without having to prepend it to everyone else's. Is this possible?
>I do have root access on the box, so if there's no way to set it in my
>.htaccess file, I could put stuff in the Apache config if that would
>get it done. I'd just like to prepend some stuff to my domain only, and
>not everyone else's. If anyone knows how to do this, or if it can/can't
>be done, please let me know. :)
>
>-j
>
>--
>Jeremy Gault <jgault@wingnet.net> - UNIX Systems Administrator
>WingNET Internet Services (web site @ http://www.wingnet.net/ )
>PGP Public Key @ http://www.wingnet.net/~jgault/pgpkey.txt
>(423) 559-5465 (voice) / (423) 559-5444 (fax)
> "Do not meddle in the affairs of sysadmins, for they are easy to
> annoy and have the root password."
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>