Home > headlines > [zip file library] Download 10 php zip file libraries

[zip file library] Download 10 php zip file libraries

伊谢尔伦
Release: 2017-05-21 13:32:32
Original
3191 people have browsed it

zip compression and decompression may not be used in many places in general web applications, but it is more commonly used in some of the following application scenarios, such as compressing database backup files. , package multiple files together for download, compress and interpret the files packaged and uploaded by customers, and it is still necessary to be familiar with common functions and classes for compression and decompression.

To this end, our php Chinese website provides you with 10 more representative zip libraries for friends to download and learn.

1. A very practical php zip compression library source code file

A very practical php zip compression class library, including two PHP zip source code files can be downloaded and used directly, which can save PHP web developers a lot of time!

2. PHPZip class for php file compression

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 win systems, 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. Decompress the zip file
2 , Compress the file into a zip file
3. Append the file to the zip file
4. Pack the folder into a zip file (need to add files and create an empty folder in a loop)
5. Delete the compressed file Entry

3. php’s compression and decompression Zip class

php’s compression and decompression Zip class, modified to traverse subfolders, add GetZipComment() method, Add instructions for use.

4. php generates zip file class

Introduces the zip file class generated by php, and analyzes the skills of php operating zip files with examples. It is of great practical value and is needed. Friends can download it for reference.

5. The zip file content comparison class implemented by php

The example describes the zip file content comparison class implemented by php. It is a very practical PHP class file. Share it with everyone for your reference.

This php zip file comparison class mainly implements comparing the contents of two zip files and returning a list of new, deleted, and identical files. Currently only single layer is supported. Upload a zip file, there are many image files in the zip. A series of time-consuming processing is required on the image files. When the user updates the zip file. Determine whether the files in the zip are consistent and only process different files. This can save resources and time, so you need to write a class that can compare files in the zip.

6. php real ZIP file operation class

php real ZIP file operation class, php packages folders into zip files, and analyzes php operations on zip files Friends who are interested can cite the techniques for reference, or if they have better zip classes, they can upload them to our PHP Chinese website and learn and share them with us.

7. php-ZIP compression class

We can quickly use the php compression class to compress our files into the zip or rar compression package we want, The suffix name can be customized. The compression algorithm comes from a foreign website. It is first instantiated, and then the parameters are passed. Two parameters, the first is an Array of file addresses, and the second is the absolute address of the compressed package file to be saved.

8. php-adodbzip class

Class library introduction:

1) If the Adodb program file in $extract_dir exists and $zip_file does not exists; use the Adodb program file in $extract_dir.

2) If the Adodb program file in $extract_dir exists, and $zip_file exists; compare the modification time, and the Adodb program file in $extract_dir is updated to the newer one.

3) If the Adodb program file in $extract_dir does not exist and $zip_file exists; then the Adodb program file in $extract_dir is decompressed from $zip_file.

4) If the Adodb program file in $extract_dir does not exist and $zip_file does not exist; download the Adodb Zip file from $zip_url and decompress the Adodb program file.

9. Detailed explanation of zip and unzip classes of php

Class library introduction:

  • 1. Open a ZIP package, Used to read, write or modify;

  • 2. Set the decompression password of the zip package;

  • 3 Close 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 to the ZIP package;

  • 6. Add the content 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, delete the specified file through the file index and file name;

  • 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).

10. php zip file content comparison

php zip file content comparison type, you can directly decompress it after downloading, and Files are placed in the corresponding include folder.

For more related class library downloads, please pay attention: //m.sbmmt.com/xiazai/leiku

[Related class library recommendations]

1.【php unlimited classification】summary of the most complete php unlimited classification library download and text video tutorial

2. php paging class code sharing: 2017 Download the latest 10 PHP paging class codes of the year

3.[php thumbnail class] Download the latest 10 libraries that use PHP to generate thumbnails

4.[php verification code class] Share 10 useful php verification code codes

Related labels:
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