WayneD Posted August 20, 2010 Share Posted August 20, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/211308-trouble-with-mod_autoindex-and-php/ Share on other sites More sharing options...
wildteen88 Posted August 23, 2010 Share Posted August 23, 2010 What are you trying to do? Have a constant header/footer for your site? Quote Link to comment https://forums.phpfreaks.com/topic/211308-trouble-with-mod_autoindex-and-php/#findComment-1102783 Share on other sites More sharing options...
WayneD Posted August 23, 2010 Author Share Posted August 23, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/211308-trouble-with-mod_autoindex-and-php/#findComment-1102788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.