How to [recursively] Zip a directory in PHP?

Directory is something like: home/ file1.html file2.html Another_Dir/ file8.html Sub_Dir/ file19.html I am using the same PHP Zip class used in PHPMyAdmin . I’m not sure how to zip a directory rather than just a file. Here’s what I have so far: $aFiles = $this->da->getDirTree($target); /* $aFiles is something like, path => filetime Array … Read more