Treehouse: Grow your CSS skills. Land your dream job.

Multiple downloads/redirects

  • # February 10, 2010 at 12:07 pm

    Hi guys,

    I have a table which displays files stored on my server. It has check boxes next to each file. The idea is that I can use these check boxes combined with a drop down list to either move the files, delete the files, or download them.

    Moving and Deleting is easy, but I’m a bit stuck when I want to download multiple files. When I download the files normally, I just have <a> links to a page with eLouai’s download script ( I kind of want to put this into a for loop but I don’t know if it will work? i.e.

    foreach($downloadfile as $file)
    header(‘Location: download.php?file=files/$file”);

    hmmmmmmmm…. although, looking at that that definitely won’t work, as the first one would probably navigate you away from the page… any ideas?

    thanks, dave

    # February 17, 2010 at 12:20 am

    Multiple downloading at a single time is just not possible. You should look into dynamically combining files via .zip and/or .rar.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.