Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Multiple downloads/redirects

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27943
    sheepysheep60
    Participant

    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 (http://elouai.com/force-download.php). I kind of want to put this into a for loop but I don’t know if it will work? i.e.

    Code:
    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

    #71043
    john010117
    Member

    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.