1

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 . "/>");
  }
?>
Abhijith Sasikumar
  • 13,262
  • 4
  • 31
  • 45
hika
  • 11
  • 1
  • is this your answer ? https://stackoverflow.com/a/20206420/12232340 –  Feb 20 '20 at 07:30

1 Answers1

0

Take a look on the function zip_entry_read()

An example how to use it you can find here

CodyKL
  • 1,024
  • 6
  • 14