Extract File .Zip With PHP

<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
  $zip->extractTo('/my/destination/dir/');
  $zip->close();
  echo 'ok';
} else {
  echo 'failed';
}
?>
Untuk tutorial lengkap silahkan kunjungi : http://id1.php.net/manual/en/ziparchive.extractto.php

0 comments: