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

PHP zip_entry_filesize() Function

PHP zip_entry_filesize() Function


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual


Definition and Usage

The zip_entry_filesize() function returns the original file size of a zip archive entry (before compression).

Syntax

zip_entry_filesize(zip_entry)

Parameters Description
zip_entry Required. Specifies the zip entry resource to read (the zip entry opened by zip_read()).

Example

"; echo "Name: " . zip_entry_name($zip_entry) . "
"; echo "Original size: " . zip_entry_filesize($zip_entry); echo "

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

The code above will output:

Name: ziptest.txt

Original size: 59

Name: htmlziptest.html

Original size: 124


PHP Zip File Reference Manual Complete PHP Zip File Reference Manual