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

PHP
php 无限分类的实现
常用PHP代码
windows下安装配置php视频教程
MySQL数据库结构和数据的导出和导入
PHP实现 IP Whois 查询
PHP5 this,self和parent关键字详解
PHP 安全技巧连载 #1[译]
PHP 安全技巧连载 #2[译]
PHP 安全技巧连载 #3[译]
PHP 安全技巧连载 #4[译]
PHP 安全技巧连载 #5[译]
PHP 安全技巧连载 #6[译]
PHP 安全技巧连载 #7[译]
PHP 安全技巧连载 #8[译]
PHP 安全技巧连载 #9[译]
PHP 安全技巧连载 #10[译]
PHP 安全技巧连载 #11[译]
PHP error_reporting的使用
PHP 安全技巧连载 #12
使用PHP做Linux/Unix守护进程

PHP Zip


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 988 ::
收藏到网摘: 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

登陆 | 还没注册?