Page 1 of 1

forcing directory download from a dir list

Posted: Mon Jun 04, 2007 11:51 pm
by rap_digital
Hi all,
I'm a php newbie and have been trying to customise this script so that instead of opening a sub-dir it forces downloading the sud-dir. Can anyone help me out?

Thanks in advance

Posted: Tue Jun 05, 2007 3:53 am
by volka
rap_digital wrote:it forces downloading the sud-dir
please explain in more detail.
How do you download a directory?

Posted: Tue Jun 05, 2007 4:00 am
by rap_digital
As you can see with the sample script that with files you get a download button in the generate page I'm hoping to add that action to directories aswell.

Posted: Tue Jun 05, 2007 4:01 am
by onion2k
You can't download directories over HTTP. You'll have to zip them or something.

Posted: Tue Jun 05, 2007 4:26 am
by rap_digital
Duh.....really

Posted: Tue Jun 05, 2007 4:45 am
by John Cartwright
rap_digital wrote:Duh.....really
:roll:

Posted: Tue Jun 05, 2007 5:31 am
by vigge89

Posted: Tue Jun 05, 2007 6:10 am
by rap_digital
Cheers, the reason I'm try to do this is to avoid zip files. One of my clients cant download zip files due to over protective IT department. My current solution is to give her an apple automator app that ftp's in to the server and downloads the file using the command line. This works OK but as there is no real progress bar she sometimes tries opening the file before its complete. I may try giving them cyberduck and an applescript.

Posted: Tue Jun 05, 2007 7:26 am
by feyd
I don't remember if it's possible or not, but a multi-part page may be able to push multiple files in a single request (sequentially.) You will have to engineer the headers to send the proper information so her browser can accurately render a progress bar however.