0

Does anyone have experience with PclZip? I want to create a backup of two folders and all their contents recursively, but I only found on their website FAQ a way that seems to do it for the entire working directory, but not for two specific directories. Furthermore, does anyone have experience with, aside from php zip (not installed on my host), a php zipping program that can do this?

Alex
  • 9,215
  • 8
  • 39
  • 82

1 Answers1

0

You can always use ZipArchive class

Here is a very good example how to accomplish exactly what you want: https://stackoverflow.com/a/1334949/893130

Community
  • 1
  • 1
n1te
  • 945
  • 3
  • 11
  • 20
  • how can one use this code to iterate through two directories and have them in the same zip? I just want to backup my images folder i.e. `/images/upload/` and `/cms/images/users/` – Alex Jul 08 '13 at 15:04