Initial Commit
This commit is contained in:
13
database/php/tests/parseFile/zip.php
Normal file
13
database/php/tests/parseFile/zip.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$zip = zip_open("/tmp/test2.zip");
|
||||
|
||||
if ($zip) {
|
||||
while ($zip_entry = zip_read($zip)) {
|
||||
echo "Name: " . zip_entry_name($zip_entry) . "\n";
|
||||
echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "\n";
|
||||
echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "\n";
|
||||
echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n";
|
||||
}
|
||||
zip_close($zip);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user