
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
zip_entry_filesize() function in PHP
The zip_entry_filesize() function returns the file size before compression i.e. the actual file size is returned.
Syntax
zip_entry_filesize(zip_entry)
Parameters
zip_entry − A zip file opened with zip_open() is to be mentioned here.
Return
The zip_entry_filesize() function returns the file size before compression i.e. the actual file size is returned.
Example
<?php $zip = zip_open("new.zip"); if ($zip) { while ($zip_entry = zip_read($zip) { echo "File Size before compression = ". zip_entry_filesize($zip_entry). "<br />"; } zip_close($zip); } ?>
Output
File Size before compression = 150 File Size before compression = 290 File Size before compression = 195
Advertisements