<?php $zip = new ZipArchive; if ($zip->open('test1.zip') === TRUE) { echo $zip->getFromName('testfromfile.php'); $zip->close(); } else { echo 'failed'; }?>
<?php $z = new ZipArchive(); if ($z->open(dirname(__FILE__) . '/test_im.zip')) { $im_string = $z->getFromName("pear_item.gif"); $im = imagecreatefromstring($im_string); imagepng($im, 'b.png'); }?>