#22791 [Opn->Bgs]: php_value auto_prepend in .htaccess ignored when loading a index.html
| From: | sniper@php.net | Date: | Wed, 19 Mar 2003 21:42:07 +0000 |
| Subject: | #22791 [Opn->Bgs]: php_value auto_prepend in .htaccess ignored when loading a index.html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35965@lists.php.net to get a copy of this message | ||
ID: 22791
Updated by: sniper@php.net
Reported By: peter dot kling at veritas dot com
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: solaris 8
PHP Version: 4.3.1
New Comment:
If your apache is not set to parse .html through PHP, of course it
won't work. Not bug.
Previous Comments:
------------------------------------------------------------------------
[2003-03-19 15:02:30] peter dot kling at veritas dot com
This function worked with Apache/1.3.26 and PHP Version 4.2.2 running
on SunOS goldeneyes 5.8 Generic sun4u sparc SUNW,Ultra-4
Since we upgrade to PHP Version 4.3.1 this does not work.
we have .htaccess files in directories that just have the following two
lines:
----Start---
php_value auto_prepend_file "/vfr/htdocs/jscode/menuheader.html"
php_value auto_append_file "/vfr/htdocs/jscode/reg_footer.html"
----End---
So then if you access a file like index.html or somename.html in that
directory the page would load with the menuheader.html and the
reg_footer.html force on that page. We use this to keep a constant
look and feel on this site.
Since we upgrade to PHP Version 4.3.1 this does not work.
I've noted bugs reported for Apache 2.x but not 1.3x could you please
look at the code and see if you can find this bug.
The short fix is for us to rename every .html file to a .php file and
it works, but renaming 1000s of files is a bit much.
Thanks
peter
PS: note I have reproduced this bug on FreeBSD 4.x also.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22791&edit=1