Installation
To run the Zip File function on the server, you must install these libraries:
- Guido Draheim's zziplib library: Download Zziplib Library
- Zip pelc extension: Download zip pelc extension
Installing on a 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.
Installing on a Windows system
PHP 5+: The ZIP function is not enabled by default and you must download the Php_zip.dll and zziplib libraries from the links above. You must enable Php_zip.dll 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 resides. The value for example Extension_dir may be c:\php\ext.
PHP Zip File function
php: Indicates the earliest version of PHP that supports this function.
function |
description |
PHP |
zip_close () |
close the zip file. |
4 |
zip_entry_close () |
Close one of the items in the 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 for 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 the zip file. |
4 |
zip_entry_open () |
Open an item in the ZIP file for reading. |
4 |
zip_entry_read () |
reads an open project from a zip file. |
4 |
zip_open () |
open the zip file. |
4 |
zip_read () |
reads the next item in the zip file. |
4 |
PHP Zip File Constants
No.
PHP Zip File