PclZip: powerful PHP compression and decompression zip class
Source: Internet
Author: User
PclZip is a powerful PHP class for compressing and decompressing zip files. PclZiplibrary can compress and decompress Zip files (WinZip and PKZIP) and can process such files, overview of PclZip, including generating compressed files, listing compressed files, and extracting files
PclZip is a powerful PHP class for compressing and decompressing zip files. the PclZip library can compress and decompress Zip files (WinZip and PKZIP ); this type of files can be processed, including generating compressed files, listing compressed files, and extracting files.
It is simple, easy to use, and powerful.
Recently, I was developing my Wordpress plug-in ShareLink. during this process, I found the PHP class of the zip file operated by PclZip, which I have to recommend.
Another reason for the recommendation is that the source code of the PHP function allows me to find the loose usage of a PHP function parameter. The following is an example.
<? Php
Include_once ('pclzip. lib. php ');
$ Archive = new PclZip('archive.zip ');
$ V_list = $ archive-> create ('data/file.txt, data/text.txt ',
PCLZIP_OPT_REMOVE_PATH, 'data ',
PCLZIP_OPT_ADD_PATH, 'Install ');
If ($ v_list = 0 ){
Die ("Error:". $ archive-> errorInfo (true ));
}
?>
If you see no parameters for the create method, you will know how to deal with it by looking at the method prototype. At least I have never used it.
Related documents:
PclZip official address: http://www.phpconcept.net/pclzip/index.php
PclZip manual address: http://www.phpconcept.net/pclzip/man/en/index.php
PEAR class create ZIP archives: http://www.ccvita.com/10.html
Overview and use of PclZip: http://www.ccvita.com/59.html
PclZip: powerful PHP compression and decompression zip class: http://www.ccvita.com/330.html
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service