This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class HZip | |
{ | |
/** | |
* Add files and sub-directories in a folder to zip file. | |
* @param string $folder | |
* @param ZipArchive $zipFile | |
* @param int $exclusiveLength Number of text to be exclusived from the file path. | |
*/ | |
private static function folderToZip($folder, &$zipFile, $exclusiveLength) { |