[PHP]unzip
public function unzip($file,$to) { $zip = new ZipArchive(); $result = $zip->open($file); if($result === true){ $result = $zip->extractTo($to); $zip->close(); } return $result === true; }
public function unzip($file,$to) { $zip = new ZipArchive(); $result = $zip->open($file); if($result === true){ $result = $zip->extractTo($to); $zip->close(); } return $result === true; }