Home PHP Libraries Other libraries Detailed explanation of php's zip and unzip classes
Detailed explanation of php's zip and unzip classes Introducing a detailed explanation of PHP's zip and unzip classes. 1.Open a ZIP package for reading, writing or modifying; 2.Set the decompression password of the zip package; 3Close the activated zip package (opened or newly created) , and save the changes; 4.Extract the entire archive or a given file from the zip package to the specified directory or file (unzip); 5.Add a File; 6.Add the contents of the file to the zip package (naturally, we need to specify which file in the zip package the content should be added to); 7.In the zip package, through the file index and file name, delete the specified file; 8.Get error information, system information or zip information; 9.Undo all changes to the zip package; 10.Class constants used by ZipArchive. There are three types of constants: Flags (prefixed by FL_), errors (prefixed by ER_) and mode (no prefix).
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

Detailed explanation and examples of compressing zip and decompressing unzip commands under Linux Detailed explanation and examples of compressing zip and decompressing unzip commands under Linux

12 Dec 2016

Detailed explanation and examples of compressing zip and decompressing unzip commands under Linux

Detailed explanation of encapsulation and inheritance of PHP classes, detailed explanation of PHP encapsulation_PHP tutorial Detailed explanation of encapsulation and inheritance of PHP classes, detailed explanation of PHP encapsulation_PHP tutorial

12 Jul 2016

Detailed explanation of PHP class encapsulation and inheritance, detailed explanation of PHP encapsulation. Detailed explanation of encapsulation and inheritance of PHP classes, detailed explanation of PHP encapsulation. Encapsulation encapsulates member methods and member attributes into classes, hiding the details of attribute and method implementation, through public, protected, private and other restrictions.

Detailed explanation of PHP's addition, deletion, modification and query of xml files Detailed explanation of PHP's addition, deletion, modification and query of xml files

03 Jan 2018

This article mainly introduces the implementation method of PHP's addition, deletion, modification and query operations on XML files. It analyzes PHP's loading of XML files and the reading, modification and query of XML nodes and other related operating techniques based on specific examples. Friends in need can refer to the following . I hope to be helpful.

Detailed explanation of the graphic code of PHP's execution principles and processes Detailed explanation of the graphic code of PHP's execution principles and processes

10 Aug 2017

Introduction Let’s take a look at the following process: • We have never manually started the PHP-related process, it runs when Apache starts; • PHP is connected to Apache through the mod_php5.so module (specifically, SAPI, that is, the server Application programming interface); • PHP has three modules in total: kernel, Zend engine, and extension layer; • PHP kernel is used to handle requests, file streams, error handling and other related operations; • Zend engine (ZE) is used to convert source files

Detailed explanation of linux unzip command parameters and usage--linux unzip file command Detailed explanation of linux unzip command parameters and usage--linux unzip file command

12 Dec 2016

Detailed explanation of linux unzip command parameters and usage--linux unzip file command

Detailed explanation of encapsulation of uploading images, files and other classes in Laravel in PHP Detailed explanation of encapsulation of uploading images, files and other classes in Laravel in PHP

18 May 2018

This article mainly introduces the implementation code of PHP Laravel uploading pictures, files and other class encapsulation. Friends in need can refer to it.

See all articles