[PHP-DEV] PHP 4.0 Bug #7868: mod_autoindex breaks when php handles .html files From: andrew <email protected>
Date: 11/17/00

From: andrew <email protected>
Operating system: RedHat Linux 7.0
PHP version: 4.0.3pl1
PHP Bug Type: Apache related
Bug description: mod_autoindex breaks when php handles .html files

When PHP is set to process all .html files, certain functions of mod_autoindex fail. Specifically, my directory indexes no longer display README.html or HEADER.html files. These are specified by the following directives in my httpd.conf file:

HeaderName HEADER.html
ReadmeName README.html

If I comment out the following line:

  AddType application/x-httpd-php .html

then the normal functionality resumes, with header and readme files prepending and appending properly. This leaves me with the unfortunate choice of having to deny users the ability to parse PHP within HTML files or removing the very useful ability to generate raw directory indexes with headers and footers.

I'm using Apache 1.3.14 and PHP 4.0.3pl1 with RedHat Linux 7.0 on an i686 box.

-- 
Edit Bug report at: http://bugs.php.net/?id=7868&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>