Page 1 of 1

need help to modify the PHP Directory Lister script?

Posted: Tue Dec 23, 2008 7:48 am
by tom456
hi!

i recently downloaded wonderful script which helps to list all files in directories, its called Php Directory Lister link http://greg-j.com/wp-content/uploads/20 ... pdl-v2.zip..

And my question is: is it possble to change the filename link option into download link option like the downloadimage behind the column, when somebody clicks on the filelink then the download appears instead of showing the file (.txt, .doc etc) by itself in webbrowser..

could somebody help me? :wink:
hopefully the question is understandable.. :wink:

Re: need help to modify the PHP Directory Lister script?

Posted: Tue Dec 23, 2008 12:00 pm
by RobertGonzalez
You are probably going to have to add a step in there somewhere to handle the file being requested by sending an appropriate content type header and content disposition header to force a download. Either that or make some changes to your web server to do that automatically for certain file types.