Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP zip_entry_open() Function

PHP zip_entry_open() Function


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual


Definition and Usage

The zip_entry_open() function opens a zip archive for reading.

On success, this function returns TRUE. On failure, it returns FALSE.

Syntax

zip_entry_open(zip,zip_entry,mode)

Parameters Description
zip Required. Specifies the zip resource to read (the zip file opened by zip_open()).
zip_entry Required. Specifies the zip entry resource to open (the zip entry opened by zip_read()).
mode Optional. Specifies the access type for the zip archive entry.

Note:In PHP 5, mode is ignored and is always "rb". This is because zip support in PHP is read-only.


Example

"; echo "Name: " . zip_entry_name($zip_entry) . "
"; if (zip_entry_open($zip, $zip_entry)) { // some code } echo "

"; } zip_close($zip); } ?>

PHP Zip File Reference Manual Complete PHP Zip File Reference Manual