Skip to content

Instantly share code, notes, and snippets.

@nhaskins
Created May 10, 2010 01:14
Show Gist options
  • Save nhaskins/395553 to your computer and use it in GitHub Desktop.
Save nhaskins/395553 to your computer and use it in GitHub Desktop.
php open .zip and read file names
$za = new ZipArchive();
$za->open('test.zip');
for ($i=0; $i<$za->numFiles;$i++) {
$thing = $za->statIndex($i);
echo $thing[name];
echo "<br /><br />";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment