7
List all files in Zip archive
List all files in Zip archive with PHP
<?php
$info = new ZipArchive();
$info->open('file.zip');
for($i = 0; $i < $info->numFiles; $i++ ){
$files = $info->statIndex($i);
echo '<pre>';
print_r(basename($files['name']));
echo '</pre>';
}
?>
rated 7 times
(7)
(0)
comments: 0 / hits: 2700
/ 5 years ago, sat, sep 10, 16, 03:16:20
More From
» PHP
Comments
There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account