Forum Moderators: coopster
<?PHP ...
//force download dialog
header("Content-type: application/octet-stream\n");
header("Content-disposition: attachment;
filename=\"$file\"\n");
header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($path) . "\n");
//send file contents
$fp=fopen($path, "r");
fpassthru($fp);
exit();
?>
The issue is, while they wait for one file to download they can't request another file until the script finishes streaming the first file. Is there a way around this?
I thought maybe using "Content-Type: multipart" might work. Anybody have and idea how I would do this?
I was just looking into your question to see what I could come up with :) Thanks for sharing your solution.