PHP zip_entry_open() 函数
PHP 教程
· 2019-01-30 23:29:38
定义和用法
zip_entry_open() 函数打开一个 zip 档案以供读取。
如果成功,该函数则返回 TRUE。如果失败,则返回 FALSE。
语法
zip_entry_open(zip,zip_entry,mode)
| 参数 | 描述 |
|---|---|
| zip | 必需。规定要读取的 zip 资源(由 zip_open() 打开的 zip 文件)。 |
| zip_entry | 必需。规定要打开的 zip 项目资源(由 zip_read() 打开的 zip 项目)。 |
| mode | 可选。规定 zip 档案项目的访问类型。 注释:在 PHP 5 中,mode 会被忽略,且总为 "rb"。这是因为在 PHP 中的 zip 支持是只读的。 |
实例
<?php
$zip = zip_open("test.zip");
if ($zip)
{
while ($zip_entry = zip_read($zip))
{
echo "<p>";
echo "Name: " . zip_entry_name($zip_entry) . "<br />";
if (zip_entry_open($zip, $zip_entry))
{
// some code
}
echo "</p>";
}
zip_close($zip);
}
?>
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Google's PageRank and Beyond
Amy N. Langville、Carl D. Meyer / Princeton University Press / 2006-7-23 / USD 57.50
Why doesn't your home page appear on the first page of search results, even when you query your own name? How do other web pages always appear at the top? What creates these powerful rankings? And how......一起来看看 《Google's PageRank and Beyond》 这本书的介绍吧!