I tried this but not work
<?php
$za = new ZipArchive();
$za->open('zip1.zip');
for ($i=0; $i < $za->numFiles ; $i++) {
$stat = $za->statIndex($i);
print_r("<img src=" .basename($stat['name']) . PHP_EOL . "/>");
}
?>
I tried this but not work
<?php
$za = new ZipArchive();
$za->open('zip1.zip');
for ($i=0; $i < $za->numFiles ; $i++) {
$stat = $za->statIndex($i);
print_r("<img src=" .basename($stat['name']) . PHP_EOL . "/>");
}
?>
Take a look on the function zip_entry_read()
An example how to use it you can find here