Skip to content

Instantly share code, notes, and snippets.

@nhandl3
Created October 9, 2013 07:54
Show Gist options
  • Save nhandl3/6897734 to your computer and use it in GitHub Desktop.
Save nhandl3/6897734 to your computer and use it in GitHub Desktop.
<?php
$zip = new ZipArchive;
$res = $zip->open('file.zip');
if ($res === TRUE) {
$zip->extractTo('/myzips/extract_path/');
$zip->close();
echo 'woot!';
} else {
echo 'doh!';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment