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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -