0

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.

Toon Krijthe
  • 51,960
  • 37
  • 141
  • 201
amol211
  • 1
  • 1

2 Answers2

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
  • 141,508
  • 20
  • 234
  • 284
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');

http://www.phpconcept.net/pclzip

http://www.phpconcept.net/pclzip/user-guide/57

pleerock
  • 17,400
  • 16
  • 98
  • 122