Home >Backend Development >PHP Tutorial >PclZip plug-in file decompression and compression in php_PHP tutorial
Recently I was developing my WordPress plug-in ShareLink. In the process, I discovered PclZip, a PHP class for operating zip files, and I have to recommend it. Another reason for recommendation is that I discovered a lewd usage of PHP function parameters in its source code. An example will be given below.
Generate zip file
Usage 1:
The code is as follows
|
Copy code |
||||
< ?phpinclude_once('pclzip.lib.php');
$archive = new PclZip('archive.zip'); |
}