open a zip file and display file information

open a zip file and display file information

<?php
//zip library must be installed
$zip = zip_open("printerport1.zip");

while($zipFile = zip_read($zip))
{
echo "Filename: " . zip_entry_name($zipFile) . "<br>";
echo "Compressed Size: " . zip_entry_compressedsize($zipFile) . "<br>";
echo "Real Size: " . zip_entry_filesize($zipFile) . "<br><br>";
}

?>