The best PHP Zip File Functions Tutorial In 2024, In this tutorial you can learn PHP Zip File Profile,installation,PHP Zip File Functions,PHP Zip File Constants,

PHP Zip File Functions

PHP Zip File Profile

Zip File function allows you to read a compressed file.


installation

For Zip File functions run on the server, you must install these libraries:

Installed on a Linux system

PHP 5+: Zip functions and the Zip library is not enabled by default, must be downloaded from the link above.Please use the--with-zip = DIRconfigure option to include Zip support.

Installed on a Windows system

PHP 5+: Zip function is not enabled by default, you must download and ZZIPlib php_zip.dll libraries from the link above.Php_zip.dll must be enabled in php.ini.

To enable any PHP extensions, PHP extension_dir setting (in the php.ini file) should be set to the directory where the extension for PHP. For example extension_dir value may be c: \ php \ ext.


PHP Zip File Functions

PHP: indicates theearliest version of PHP that supports the function.

函数 描述 PHP
zip_close() 关闭 ZIP 文件。 4
zip_entry_close() 关闭 ZIP 文件中的一个项目。 4
zip_entry_compressedsize() 返回 ZIP 文件中的一个项目的被压缩尺寸。 4
zip_entry_compressionmethod() 返回 ZIP 文件中的一个项目的压缩方法。 4
zip_entry_filesize() 返回 ZIP 文件中的一个项目的实际文件尺寸。 4
zip_entry_name() 返回 ZIP 文件中的一个项目的名称。 4
zip_entry_open() 打开 ZIP 文件中的一个项目以供读取。 4
zip_entry_read() 读取 ZIP 文件中的一个打开的项目。 4
zip_open() 打开 ZIP 文件。 4
zip_read() 读取 ZIP 文件中的下一个项目。 4


PHP Zip File Constants

no.

PHP Zip File Functions
10/30