安装/配置
在线手册:中文 英文
PHP手册

安装

PHP 4

Note:

Zip support before PHP 4.1.0 is experimental.

Warning

Because the PHP 4 zip extension is unmaintained we recommend that the PECL extension is used rather than the bundled one.

Linux systems

In order to use these functions you must compile PHP with zip support by using the --with-zip[=DIR] configure option, where [DIR] is the prefix of the » ZZIPlib library install.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

PHP 5.2.0 and later

Linux systems

In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option.

Windows

Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.

Installation via PECL

安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装 章节中找到。另外的信息,如新的发行版本、下载、源文件、 Additional information such as new releases,维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/zip.

PECL 扩展的 DLL 当前不可用。参见 在 Windows 上构建 章节。

在 PHP 4 中,此 DLL 位于 PHP Windows 二进制下载中的 extensions/ 目录。


安装/配置
在线手册:中文 英文
PHP手册
PHP手册 - N: 安装

用户评论:

alvaro at demogracia dot com (15-Apr-2011 10:55)

Docs only mention PHP/4 and PHP/5.2.0 and later. For PHP/5.0 and PHP/5.1 you can simply install the PECL extension; despite being an external download, it's basically the same library.

tom at tomwardrop dot com (25-Aug-2009 03:44)

To expand on the previous comment. This extension now seems to be built-in to PHP 5.3.0 (at least for windows).