欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP 增加了對 .ZIP 文件的讀取功能

 更新時(shí)間:2006年10月09日 00:00:00   作者:  
This module uses the functions of the ZZIPlib library by Guido Draheim to transparently read ZIP compressed archives and the files inside them.
這個(gè)模塊使用 ZZIPlib 庫(Guido Draheim)來讀取 ZIP 壓縮文檔和里面的文件

Please note that ZZIPlib only provides a subset of functions provided in a full implementation of the ZIP compression algorithm and can only read ZIP file archives. A normal ZIP utility is needed to create the ZIP file archives read by this library.
請注意:這個(gè)庫只是ZIP所有擴(kuò)展功能的一個(gè)子集,只能讀取 ZIP 文檔里面的內(nèi)容。一個(gè)普通的 ZIP 環(huán)境需要能創(chuàng)建 ZIP 文檔

Zip support in PHP is not enabled by default. You will need to use the --with-zip configuration option when compiling PHP to enable zip support. This module requires ZZIPlib version >= 0.10.6.
PHP 沒有默認(rèn)支持 ZIP,你需要使用 --with-zip 配置編譯你的 PHP.這個(gè)模塊需要 ZZPIlib 版本>=0.10.6

Note: Zip support before PHP 4.0.7 is experimental. This section reflects the Zip extension as it exists in PHP 4.0.7 and later.
注意:zip在 4.0.7之前是測試的。這一章寫的是 php4.0.7 和以后版本的東西

Example Usage
This example opens a ZIP file archive, reads each file in the archive and prints out its contents. The test2.php archive used in this example is one of the test archives in the ZZIPlib source distribution.

Example 1. Zip Usage Example

<?php

$zip = zip_open("/tmp/test2.zip");

if ($zip) {

while ($zip_entry = zip_read($zip)) {
echo "Name: " . zip_entry_name($zip_entry) . "\n";
echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "\n";
echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "\n";
echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n";

if (zip_entry_open($zip, $zip_entry, "r")) {
echo "File Contents:\n";
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
echo "$buf\n";

zip_entry_close($zip_entry);
}
echo "\n";

}

zip_close($zip);

}

?> 
  • 用戶的詳細(xì)注冊和判斷

    用戶的詳細(xì)注冊和判斷

    用戶的詳細(xì)注冊和判斷...
    2006-10-10
  • PHP學(xué)習(xí)一(基礎(chǔ))

    PHP學(xué)習(xí)一(基礎(chǔ))

    PHP是什么PHP: Hypertext Preprocessor,是超文本預(yù)處理器的字母縮寫是一種廣泛應(yīng)用的開放源碼的多用途腳本語言,他可以嵌入到html里,尤其適合WEB開發(fā)。
    2008-06-06
  • 非常好的php目錄導(dǎo)航文件代碼

    非常好的php目錄導(dǎo)航文件代碼

    這個(gè)代碼雖然短小,但很實(shí)用,它可以輕松建立你指定的目錄里的指定后綴名文件的超連接,而且可以設(shè)定,不會將指定的目錄首頁導(dǎo)航
    2006-10-10
  • php header Content-Type類型小結(jié)

    php header Content-Type類型小結(jié)

    php header Content-Type類型小結(jié),很多情況下需要用到Content-Type類型。
    2011-07-07
  • 第八節(jié) 訪問方式 [8]

    第八節(jié) 訪問方式 [8]

    第八節(jié) 訪問方式 [8]...
    2006-10-10
  • PHP文件上傳主要代碼講解

    PHP文件上傳主要代碼講解

    在php開發(fā)過程中,文件上傳也經(jīng)常用到,這里簡單介紹下,需要的朋友可以參考下
    2013-09-09
  • 最新評論