Home PHP Libraries Other libraries PHP file compression PHPZip class
PHP file compression PHPZip class Introduces the usage of PHPZip class for php file compression, and analyzes the definition and related usage techniques of PHPZip class with examples
To use this PHP extension class, you need (PHP 5 >= 5.2.0, PECL zip >= 1.1.0), some methods require PHP 5.2., and the php.ini configuration supports zip
For the win system, just remove the comment of the php_zip.dll extension, and then restart the http service (IIS or Apache). Linux has not been tested yet, and the theoretical difference will not be big
Function:
1. Unzip the zip file
2. Compress the file into a zip file
3. Append files to zip file
4. Pack the folder into a zip file (need to add files and create empty folders in a loop)
5. Delete entries in the compressed file
Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Usage examples of PHPZip class for php file compression, _PHP tutorial Usage examples of PHPZip class for php file compression, _PHP tutorial

13 Jul 2016

Usage examples of PHPZip class for php file compression. Usage examples of the PHPZip class for php file compression. This article describes the usage of the PHPZip class for php file compression. Share it with everyone for your reference. The details are as follows: php//// PHPZip v1.2 by Sext (se

Usage examples of PHPZip class for php file compression_PHP tutorial Usage examples of PHPZip class for php file compression_PHP tutorial

13 Jul 2016

Usage example of PHPZip class for php file compression. Usage examples of the PHPZip class for php file compression. This article describes the usage of the PHPZip class for php file compression. Share it with everyone for your reference. The details are as follows: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Introduction to PHP zip compression package operation class Introduction to PHP zip compression package operation class

03 Jul 2018

This article mainly introduces the PHP zip compression package operation class, and analyzes the PHP encapsulated zip file decompression, compression, recursive creation, reading and other related operations in the form of a complete example. Friends in need can refer to the following

PHP file online compression program class (1/2)_PHP tutorial PHP file online compression program class (1/2)_PHP tutorial

20 Jul 2016

PHP file online compression program class (1/2). PHP file online compression program category provides a perfect PHP file online compression program. The principle is very simple. It saves the file in binary form. I have used the kernel program using rar before. This

PHP uses ZipArchive class to implement file compression and decompression PHP uses ZipArchive class to implement file compression and decompression

20 Jan 2020

The ZipArchive class is a class specially used for file compression and decompression operations. Commonly used methods are: 1. [open()] method, which means opening a compressed package file; 2. [addFile()] method, which means adding the specified file into a compressed package.

PHP multiple file upload class PHP multiple file upload class

01 Dec 2016

<?php /* * @(#)UploadFile.php * * Can handle multiple uploaded files by users at the same time. After verifying the validity of the file, store it in the specified directory. * Can return useful information about uploaded files for use by other programs. (Such as file name, type, size, save path) * Please see the information at the bottom of this class (UploadFile class usage notes) for usage methods. * */ class UploadFile { var $user_pos ...

See all articles