PHP How to use zip _php tutorial

Source: Internet
Author: User
How to use PHP in zip

The zip file feature allows you to read the zip file.


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

Installation
For the zip file function to work on your server, these libraries must be installed:

The Zziplib coogee Draheim: Download Zziplib Library
Zip pelc extension: Download zip pelc extension
Installing the Linux system

PHP 5 +: Zip code function and zip code library is not enabled by default and must be contacted from above. Use the-w ith-zipper = Direction configuration option, including ZIP code support.

Installation under Windows system

PHP 5 +: Zip Code functions are not enabled by default, so the Php_zip.dll and zziplib libraries must be linked from above. The php_zip.dll must have internal php.ini enabled.

In order to make any PHP extension, PHP extension_dir settings (in the php.ini file) should be set in the directory where the PHP extension library is located. For example, the Extension_dir value is an extension of c:php.


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

PHP zip file features
PHP: Displays the earliest PHP version, supported features.

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 a entry in the ZIP file 4
Zip_entry_compressionmethod () Returns the compression method of a entry in the ZIP file 4
Zip_entry_filesize () Returns the actual file size of a entry in the ZIP file 4
Zip_entry_name () Returns the name of the entry in the ZIP file 4
Zip_entry_open () Opens an entry in the ZIP file for reading 4
Zip_entry_read () Reads from a 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

http://www.bkjia.com/PHPjc/630492.html www.bkjia.com true http://www.bkjia.com/PHPjc/630492.html techarticle PHP's Zip use method in the ZIP file feature allows you to read the zip file. --------------------------------------------------------------------------------Install the post for ZIP file ...

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