WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP Zip File Functions

PHP Zip File Introduction

The Zip File function allows you to read compressed files.


Installation

To run Zip File functions on the server, these libraries must be installed:

Install on Linux systems

PHP 5 +: Zip functions and Zip libraries 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 systems

PHP 5 +: The Zip function is not enabled by default, you must download the php_zip.dll and ZZIPlib libraries 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 might 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 an item 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 a ZIP file. 4
zip_entry_open () Open an item in the ZIP file for reading. 4
zip_entry_read () Read an open project in a ZIP file. 4
zip_open () Open a ZIP file. 4
zip_read () Read the next item in the ZIP file. 4


PHP Zip File constants

None.