Use PHP to create a zip compression program. A class just found online. Click to download the class file (zip compressed file, 2.25 K) $ znewPHPZip (); create a zip class Method 1: unzip z-zip(,out1.zip ); add the current directory and the class that the child just found online. Click to download a class file (zip compressed file, 2.25 K)
$ Z = new PHPZip (); // Create a zip class
Method 1:
$ Z-> Zip ("", "out1.zip"); // add all files under the current directory and subdirectory
Method 2:
Using filespolicarray('1.txt', 'gb.txt ');
Using files000000000000'5.txt ';
$ Z-> Zip ($ files, "out2.zip"); // add a file list
Method 3:
$ Z-> Zip ("/usr/local/sext/", "out3.zip"); // add a specified directory
Bytes. Click to download a class file (zip compressed file, 2.25 K) $ z = new PHPZip (); // Create a zip class Method 1: $ z-Zip (, out1.zip ); // add the current directory and sub...