I want to download multiple zip files from a server, and while downloading this all zip file append and download as a one zip file from server.
Asked
Active
Viewed 577 times
0
-
while download or after download? – pleerock Oct 15 '11 at 06:03
2 Answers
1
To pack all zip files in the e.g. current directory and send that to the browser, try:
header("Content-Type: archive/zip");
passthru("zip - -0 *.zip");

mario
- 144,265
- 20
- 237
- 291
0
I use PLCZIP for zip operations and recommend it to you too
craete new pclzip object
require_once('pclzip.lib.php');
$archive = new PclZip('archive.zip');
$v_list = $archive->add('myfile1.zip,myfile2.zip,myfile3.zip');

pleerock
- 18,322
- 16
- 103
- 128