Code Snippets Php

//zip library must be installed
$zip = zip_open("printerport1.zip");
while($zipFile = zip_read($zip))
{
echo "Filename: " . zip_entry_name($zipFile) . "
";
echo "Compressed Size: " . zip_entry_compressedsize($zipFile) . "
";
echo "Real Size: " . zip_entry_filesize($zipFile) . "

";
}
?>