The Zip File function allows you to read compressed files.
To run the Zip File function on the server, these libraries must be installed:
Guido Draheim's ZZIPlib library: Download the ZZIPlib library
Zip PELC extension: Download Zip PELC extension
Install on Linux system
PHP 5+: The Zip function and Zip library are not enabled by default and must be downloaded from the link above. Please use the --with-zip=DIR configuration option to include Zip support.
Install on Windows system
PHP 5+: Zip function is not enabled by default, php_zip.dll and ZZIPlib libraries must be downloaded from the link above. php_zip.dll must be enabled in php.ini.
To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extension is located. For example, the value of extension_dir may be c:phpext.
PHP : Indicates the earliest PHP version that supports this function.
function | describe | PHP |
---|---|---|
zip_close() | Close the ZIP file. | 4 |
zip_entry_close() | Close an item in a ZIP file. | 4 |
zip_entry_compressedsize() | Returns the compressed size of an item in a ZIP file. | 4 |
zip_entry_compressionmethod() | Returns the compression method of an item in a ZIP file. | 4 |
zip_entry_filesize() | Returns the actual file size of an item in a ZIP file. | 4 |
zip_entry_name() | Returns the name of an item in a ZIP file. | 4 |
zip_entry_open() | Opens an item in a ZIP file for reading. | 4 |
zip_entry_read() | Read an open project in a ZIP file. | 4 |
zip_open() | Open the ZIP file. | 4 |
zip_read() | Read the next item in the ZIP file. | 4 |
none.