Jump to content

Recommended Posts

Looking all over for some clues here.  There seem to be major issues with a php header/footer file and the mod_autoindex output.  Here is my htaccess file info:

 

AddHandler php5-cgi .html

AddType text/html .html

HeaderName test_doc_header.html

 

note that php as a cgi is the server config.  Before they ran it as a mod and that worked fine.  Now it's  a problem.

 

With the above config, the directory listing is garbled.  If I add a footer, the footer follows the header and the garbled listing is at the bottom.  I currently have a test up at http://www.cmcboulder.org/doc_test/

 

Problem is that I need the php processing for the application to work.  I'm beginning to think that I need to go find/write a directory listing app in php to replace mod_autoindex :(

 

Back on topic, has anyone heard of solutions to this issue?

Link to comment
https://forums.phpfreaks.com/topic/211308-trouble-with-mod_autoindex-and-php/
Share on other sites

Apache bug filed on this, https://issues.apache.org/bugzilla/show_bug.cgi?id=49810

 

The header puts some standard site stuff in, via php includes and some generated page content.  The footer adds some buttons for file management, if the user is logged in with the right permissions.

 

I've worked around this by just writing our own php file list code and including the header/footer stuff directly.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.