Get the compressed file size of a zip archive entry in PHP
Description
The following code shows how to get the compressed file size of a zip archive entry.
Example
//from ww w. j a v a 2s.c o m
<?php
$zip = zip_open("test.zip");
if ($zip){
while ($zip_entry = zip_read($zip)){
echo "<p>";
echo "Name: " . zip_entry_name($zip_entry) . "<br />";
echo "Compressed Size: " . zip_entry_compressedsize($zip_entry);
echo "</p>";
}
zip_close($zip);
}
?>