<?php
$zip = new ZipArchive();
if(!$zip->open('po.zip')){
echo "Could not open zip file";
}
?>
<h1>Num Files: <?php echo $zip->numFiles;?></h1>
<?php
for($i=0;$i<$zip->numFiles;$i++){
$file = $zip->statIndex($i);
echo $file['name']." ".$file['size']." <br/>";
}
$zip->close();
?>
$zip = new ZipArchive();
if(!$zip->open('po.zip')){
echo "Could not open zip file";
}
?>
<h1>Num Files: <?php echo $zip->numFiles;?></h1>
<?php
for($i=0;$i<$zip->numFiles;$i++){
$file = $zip->statIndex($i);
echo $file['name']." ".$file['size']." <br/>";
}
$zip->close();
?>
No comments:
Post a Comment