PHP zip usage

Source: Internet
Author: User

PHP zip usage

The Zip file function allows you to read the ZIP file.


--------------------------------------------------------------------------------

Install
For Zip file functions, these libraries must be installed on your server:

The ZZIPlib Kudgi Draheim: Download the ZZIPlib Library
Extension of Zip code PELC: extension of downloaded Zip PELC
Install Linux

PHP 5 +: Zip code function and zip library are not enabled by default. You must contact the above. Use the-w ith-zipper = direction configuration option, including zip code support.

Installation in Windows

PHP 5 +: The ZIP code function is not enabled by default, so the php_zip.dll and ZZIPlib libraries must be linked from the above. Php_zip.dll must enable internal php. ini.

To enable any PHP extension, set the PHP Extension Library location under the extension_dir directory of php (in the PHP. Ini file. For example, the extension_dir value is the extension of c: PHP.


--------------------------------------------------------------------------------

PHP Zip file function
PHP: displays the earliest PHP version and supported functions.

Function Description PHP
Zip_close () Closes a ZIP file 4
Zip_entry_close () Closes an entry in the ZIP file 4
Zip_entry_compressedsize () Returns the compressed size of an entry in the ZIP file 4
Zip_entry_compressionmethod () Returns the compression method of an entry in the ZIP file 4
Zip_entry_filesize () Returns the actual file size of an entry in the ZIP file 4
Zip_entry_name () Returns the name of an entry in the ZIP file 4
Zip_entry_open () Opens an entry in the ZIP file for reading 4
Zip_entry_read () Reads from an open entry in the ZIP file 4
Zip_open () Opens a ZIP file 4
Zip_read () Reads the next entry in a ZIP file 4

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.