0

I need to zip non-empty folder with all files and sub-folders. I found lots of classes and functions, but all of them zip whole directory structure or something like that. But I need to zip only the content of given folder.

In advance thanks for answers

Lukáš Jelič
  • 499
  • 3
  • 8
  • 22
  • You need zip every single folder and file one by one ? – safarov Mar 18 '12 at 18:15
  • I think the OP refers to the way standard PHP ZIP class zip a directory: inside the output zipped files, there is all the directory structure from the root of the filesystem. I.e. if I zip the /home/me/data folder, the zip file contains the the /home folder, that have only /me inside, then only /data and finally, /data full content is present. – lorenzo-s Mar 18 '12 at 18:18
  • 1
    http://stackoverflow.com/questions/1334613/how-to-recursively-zip-a-directory-in-php – Asim Zaidi Mar 18 '12 at 18:21

0 Answers0