mod autoindex - How to get PHP to execute when using it as the header/readme for mod_autoindex -


apache mod_autoindex allows not have directories automatically generated, customize them many degrees, including custom header , readme (footer) files. however, when using php files, php fails execute. resulting page has php code throughout it, rather dynamic content said code should have produce.

something simple writing out name of directory fails, because php not execute.

i have searched, , found adding following .htaccess should fix this:

addtype text/html .php  addhandler application/x-httpd-php .php  

however, seems make no difference.

without further information hard debug... suggest going through of steps in this answer , if not yield results, post more details current setup.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -