当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > PHP Zip

PHP
PHP Libxml
PHP Math
PHP Misc
PHP MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip
PHP Mail
用PHP5的DirectoryIterators递归扫描目录
PHP 阻止SQL注入式攻击
PHP5面向对象 - 基础 - 类和对象
PHP5面向对象 - 基础 - 类的属性( public )
PHP5面向对象 - 基础 - 类的属性( private )
PHP5面向对象 - 基础 - 方法
PHP5面向对象 - 基础 - 对象的比较
php5面向对象 - 基础 - 构造函数
php5面向对象 - 基础 - 析构函数
用PHP控制用户的浏览器 - ob*函数的使用
PHP PDO 学习笔记

PHP Zip


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 986 ::
收藏到网摘: n/a

PHP Zip File Introduction
PHP Zip 文件简介

The Zip files functions allows you to read ZIP files.
你可以使用ZIP文件函数阅读ZIP文件。


Installation
安装

For the Zip file functions to work on your server, these libraries must be installed:
如果你希望在你的服务器上使用ZIP文件函数,那么你必须安装下面的库文件:

Installation on Linux Systems
在Linux系统上的安装方法

PHP 5+: Zip functions and the Zip library is not enabled by default and must be downloaded from the links above. Use the --with-zip=DIR configure option to include Zip support.
PHP 5+:Zip函数和Zip库并不会默认安装,你必须通过上述的连接下载安装。你可以使用:--with-zip=DIR选项来配置Zip。

Installation on Windows Systems
在Windows系统上的安装方法

PHP 5+: Zip functions is not enabled by default, so the php_zip.dll and the ZZIPlib library must be downloaded from the link above. php_zip.dll must be enabled inside of php.ini.
PHP 5+:Zip函数和Zip库并不会默认安装,你必须通过上述的连接下载安装。php_zip.dll必须在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 extensions are located. An example extension_dir value is c:phpext.
为了激活所有的PHP扩展,PHP extension_dir属性(位于php.ini文件内),应该设置在PHP扩展目录之中,如:c:phpext。


PHP Zip File Functions
PHP Zip文件函数

PHP: indicates the earliest version of PHP that supports the function.
PHP:最早支持这些函数的PHP版本

Function
函数
Description
描述
PHP
PHP版本
zip_close() Closes a ZIP file
关闭一个ZIP文件
4
zip_entry_close() Closes an entry in the ZIP file
关闭ZiP文件中的一个条目[entry]
4
zip_entry_compressedsize() Returns the compressed size of an entry in the ZIP file
返回ZiP文件中一个条目[entry]的尺寸大小
4
zip_entry_compressionmethod() Returns the compression method of an entry in the ZIP file
返回ZiP文件中一个条目[entry]的压缩方法
4
zip_entry_filesize() Returns the actual file size of an entry in the ZIP file
返回ZIP文件中一个条目[entry]在压缩之前的原始文件大小
4
zip_entry_name() Returns the name of an entry in the ZIP file
返回Zip文件中一个条目[entry]的名称
4
zip_entry_open() Opens an entry in the ZIP file for reading
打开Zip文件中的一个条目[entry]进行阅读
4
zip_entry_read() Reads from an open entry in the ZIP file
阅读已经打开的ZIP文件中的一个条目[entry]
4
zip_open() Opens a ZIP file
打开一个ZIP文件
4
zip_read() Reads the next entry in a ZIP file
阅读一个ZIP文件的下一个条目[entry]
4


PHP Zip File Constants
PHP Zip文件常量

NONE无

评论 (0) All

登陆 | 还没注册?