PHP 클래스 DirZip

저자: umbalaconmeogia at NOSPAM dot gmail dot com
파일 보기 프로젝트 열기: codiad/codiad 1 사용 예제들

공개 메소드들

메소드 설명
zipDir ( string $sourcePath, string $outZipPath ) Zip a folder (include itself).

비공개 메소드들

메소드 설명
folderToZip ( string $folder, ZipArchive &$zipFile, integer $exclusiveLength ) Add files and sub-directories in a folder to zip file.

메소드 상세

zipDir() 공개 정적인 메소드

Usage: DirZip::zipDir('/path/to/sourceDir', '/path/to/out.zip');
public static zipDir ( string $sourcePath, string $outZipPath )
$sourcePath string Path of directory to be zip.
$outZipPath string Path of output zip file.