Home > Backend Development > PHP Tutorial > Making zip compression program with PHP_PHP tutorial

Making zip compression program with PHP_PHP tutorial

WBOY
Release: 2016-07-20 11:03:54
Original
790 people have browsed it

I just found a category online. Click to download the class file (zip compressed file, 2.25K)
$z = new PHPZip(); // Create a new zip class
Method 1:
$z -> Zip("", "out1.zip"); //Add all files in the current directory and subdirectories
Method 2:
$files=array('1.txt','gb.txt');
$files []='5.txt';
$z -> Zip($files, "out2.zip"); //Add file list
Method three:
$z -> Zip( "/usr/local/sext/", "out3.zip"); //Add the specified directory

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445262.htmlTechArticleA class I just found online. Click to download the class file (zip compressed file, 2.25K) $z = new PHPZip(); //Create a new zip class method one: $z - Zip(, out1.zip); //Add the current directory and subtitles.. .
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template