Re: Multiple File Downloads

From: Date: Fri, 14 Dec 2007 20:44:58 +0000
Subject: Re: Multiple File Downloads
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-265908@lists.php.net to get a copy of this message
On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote:
On Dec 14, 2007 3:32 PM, David Giragosian <dgiragosian@gmail.com> wrote:
I've used Richard Lynch's Blog example for forcing the download of an individual file. Is there a way to download multiple files in one go, short of zipping them first into a single file? Concepts / directional shoves appreciated.
I wouldn't think so, Dave, because headers for each file need to be sent at the request for download, and headers cannot be sent after the header buffer has ended (when the data buffer is being sent).
I may be showing my ignorance of what can be done... But couldn't you write a script in PHP (Or some other language) that would link to a bunch of files and send each one individually to the browser as a separate file? something like: <PHP $filesArray(file1, file2, file3); foreach($filesArray) $header ="Blah blah balh" $header .="More blah blah blah" Or am I way off base as usual? :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.com

« previous php.general (#265908) next »