Zip 函数 业 ,精于勤 荒于嬉.

Zip 函数 zip_close 关闭一个ZIP档案文件

发表日期:2021-07-01 08:55:10 | 来源: | 分类:Zip 函数

zip_close

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_close关闭一个ZIP档案文件

说明

zip_close(resource $zip): void

关闭一个指定的ZIP档案文件。

参数

zip

一个由zip_open()打开的ZIP文件资源。

返回值

没有返回值。

参见

阅读全文 »

Zip 函数 zip_entry_close 关闭目录项

发表日期:2021-07-01 08:55:10 | 来源: | 分类:Zip 函数

zip_entry_close

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_close关闭目录项

说明

zip_entry_close(resource $zip_entry): bool

关闭指定的目录项。

参数

zip_entry

一个由zip_entry_open()打开的项目。

返回值

成功时返回 true, 或者在失败时返回 false

参见

阅读全文 »

Zip 函数 zip_entry_compressedsize 检索目录项压缩过后的大小

发表日期:2021-07-01 08:55:10 | 来源: | 分类:Zip 函数

zip_entry_compressedsize

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_compressedsize检索目录项压缩过后的大小

说明

zip_entry_compressedsize(resource $zip_entry): int

返回指定目录项压缩过后的大小。

参数

zip_entry

由函数zip_read() 返回的目录项。

返回值

压缩后的大小。

参见

阅读全文 »

Zip 函数 zip_entry_compressionmethod 检索目录实体的压缩方法

发表日期:2021-07-01 08:55:11 | 来源: | 分类:Zip 函数

zip_entry_compressionmethod

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_compressionmethod检索目录实体的压缩方法

说明

zip_entry_compressionmethod(resource $zip_entry): string

返回由函数zip_entry确定的目录实体的压缩方法。

参数

zip_entry

由函数zip_read() 返回的目录实体。

返回值

压缩方法。

参见

阅读全文 »

Zip 函数 zip_entry_filesize 检索目录实体的实际大小

发表日期:2021-07-01 08:55:10 | 来源: | 分类:Zip 函数

zip_entry_filesize

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_filesize检索目录实体的实际大小

说明

zip_entry_filesize(resource $zip_entry): int

返回指定目录实体的实际大小。

参数

zip_entry

由函数zip_read() 返回的目录实体。

返回值

返回该目录实体的大小。

参见

阅读全文 »

Zip 函数 zip_entry_name 检索目录项的名称

发表日期:2021-07-01 08:55:11 | 来源: | 分类:Zip 函数

zip_entry_name

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_name检索目录项的名称

说明

zip_entry_name(resource $zip_entry): string

返回指定目录项的名称。

参数

zip_entry

由函数zip_read() 返回的目录项。

返回值

目录项的名称。

参见

阅读全文 »

Zip 函数 zip_entry_open 打开用于读取的目录实体

发表日期:2021-07-01 08:55:11 | 来源: | 分类:Zip 函数

zip_entry_open

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_open打开用于读取的目录实体

说明

zip_entry_open(resource $zip, resource $zip_entry, string $mode = ?): bool

打开ZIP文件中的目录实体以便后续读取。

参数

zip

由函数zip_open()返回的有效的资源句柄。

zip_entry

由函数zip_read()返回的目录实体。

mode

任何在fopen()处理文档中指定的模式。

注意:

由于ZIP在PHP中只支持读取模式,所以mode 实际上总是被设置为"rb"(其他模式会被忽略)。

返回值

成功时返回 true, 或者在失败时返回 false

注意:

fopen()和其他类似的方法不同,zip_entry_open() 的返回值只用于标示该操作结果,不需要读取或关闭该目录实体。

参见

阅读全文 »

Zip 函数 zip_entry_read 读取一个打开了的压缩目录实体

发表日期:2021-07-01 08:55:10 | 来源: | 分类:Zip 函数

zip_entry_read

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_entry_read读取一个打开了的压缩目录实体

说明

zip_entry_read(resource $zip_entry, int $length = 1024): string

读取一个打开了的压缩目录实体。

参数

zip_entry

由函数zip_read() 返回的目录实体。

length

需要返回的字节数。

注意:

这字节数应该是你所要读取的未压缩的字节数。

返回值

成功的时候返回读取到的数据;到达文件末尾的时候返回一个空的字符串; 读取出错的时候则会返回false

参见

阅读全文 »

Zip 函数 zip_open 打开ZIP存档文件

发表日期:2021-07-01 08:55:11 | 来源: | 分类:Zip 函数

zip_open

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_open打开ZIP存档文件

说明

zip_open(string $filename): resource

打开一个新的ZIP归档文件进行读取。

参数

filename

待打开ZIP归档的文件名。

返回值

成功的时候返回一个资源句柄供函数zip_read()zip_close()后续使用; 如果filename 文件不存在或者出现其他错误,则会返回相应的错误码。

参见

阅读全文 »

Zip 函数 zip_read 读取ZIP存档文件中下一项

发表日期:2021-07-01 08:55:11 | 来源: | 分类:Zip 函数

zip_read

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.0.0)

zip_read读取ZIP存档文件中下一项

说明

zip_read(resource $zip): resource

读取ZIP存档文件中下一项。

参数

zip

一个ZIP压缩文件,该ZIP归档文件之前应由函数 zip_open() 打开。

返回值

成功的时候返回该当前实体资源供zip_entry_... 系列函数后续使用; 如果没有更多的读取项,则会返回 false 如果遇到错误则会返回相应的错误码。

参见

阅读全文 »

全部博文(1580)
集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。