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