PhpZip
bluepalmtrees.com

» About PhpZip

PhpZip is a PHP class to zip and unzip archives without the need of extensions. Allows zip archives to be created from an array of files and/or directories. Zip archives can be unzipped, the contents can be examined, and individual files can be extracted.

Functions:
· phpzip(string $archive) - Constructor, the archive filename (for both zipping and unzipping)
· bool unzip([string $target]) - Unzips all files/directories to the $target
· bool extract(string $src, string $dst) - Extracts $src from the archive and saves it to $dst
· array getFileList() - returns an array of all the files in the archive with meta data
· bool zip(array $files [, string $base]) - adds all the files in $files to the archive, $base is the optional common directory

PhpZip is very fast, very small, platform independent, and more important, it does not require extensions like Zziplib or PEAR

» Downloads
 
(13 Oct 2008 - 2.13 KB)
Initial release
 

144 total downloads