ZIP all files in directory and download generated .zip

后端 未结 6 1594
逝去的感伤
逝去的感伤 2020-12-04 18:12

Well, first of all, this is my folder structure:

images/

image1.png
image11.png
image111.png
image223.png
generate_zip.php

And this is min

6条回答
  •  萌比男神i
    2020-12-04 18:36

    ======= Working solution !======

    includes all sub-folders:

    new GoodZipArchive('path/to/input/folder',    'path/to/output_zip_file.zip') ;
    

    at first, include this piece of code.

提交回复
热议问题