Is there a way to download multiple files at the same time with the php header? I can get one download to work but when you click another download link to start a new download it will not start. It waits until the first download is stopped or finished before the second download will start up.

header("Content-Type: application/force-download");
header("Content-Length: {$f['f_size']}");
header("Content-Disposition: attachment; filename=\"{$f['f_name']}\"");
readfile($_SERVER['DOCUMENT_ROOT']."/clients/files/$f[company_id]/$f[f_project]/$f[f_realname]");

This works fine for downloading one file at a time but when they start one, click another link to download it will not start until the previous one is done. Is there a way around this? Any suggestions on what I can do to allow more then 1 file to download at a time?

Thank you.
-Danny

    Actually, this might be a limit imposed by your webserver. Some webservers list the maximum number of concurrent connections per IP.

      yea.. not many users like if 2 downloads comes at the same time.. they might just close one of them to make sure similer dual files are downloading.. 🙂 In flash 8 there is a cool function to list all files and download them smoothly.. 🙂

        Write a Reply...