PHP: Extract zip files     
 
              
            Extract .zip files, answered here: http://stackoverflow.com/questions/5653130/extract-zip-files-using-php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
  $zip->extractTo('/my/destination/dir/');
  $zip->close();
  echo 'ok';
} else {
  echo 'failed';
}
            Tag: PHP, zip, extract, File Routines, File System




 
  
 
0 Comments