downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

zip_entry_read> <zip_entry_name
Last updated: Fri, 13 Nov 2009

view this page in

zip_entry_open

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

zip_entry_open読込み用にディレクトリエントリをオープンする

説明

bool zip_entry_open ( resource $zip , resource $zip_entry [, string $mode ] )

読込み用にzipファイルの中にディレクトリエントリをオープンします。

パラメータ

zip

zip_open()により返された有効なリソースハンドル

zip_entry

zip_read()により返されたディレクトリエントリ

mode

fopen()のマニュアルで指定されたモードのどれか

注意: 現在、mode は無視され、 常に"rb"となります。 これは、PHPのzipサポートが読み込みのみのアクセスであるためです。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

注意: fopen()や他の同種の関数と異なり、 zip_entry_open()の戻り値は、 処理の結果のみを示し、ディレクトリエントリの読み込みやクローズの際には 必要とされません。

参考



add a note add a note User Contributed Notes
zip_entry_open
jrhodes at roket-productions dot com
26-Nov-2008 11:21
'rb' is a valid mode, and means Read-Only Binary Mode.  This mode is used for portability reasons (see fopen).
Anonymous
11-May-2008 01:14
Note: Currently, mode  is ignored and is always "rb". This is due to the fact that zip support in PHP is read only access.

"rb" is not a mode. Must be "r"

zip_entry_read> <zip_entry_name
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites