PHP zip usage. PHP zip usage in the Zip file function allows you to read the ZIP file. -------------------------------------------------------------------------------- How to install Zip files for PHP jobs
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 |
Using the Zip file function allows you to read the ZIP file. -------------------------------------------------- ---------------------------- Installation of Zip files...