Skip to content

Instantly share code, notes, and snippets.

@biswarupadhikari
Created September 7, 2013 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biswarupadhikari/6473000 to your computer and use it in GitHub Desktop.
Save biswarupadhikari/6473000 to your computer and use it in GitHub Desktop.
Unzip File Via PHP
<?php
$zip = new ZipArchive;
$res = $zip->open('my-20130906-191334.zip');
if ($res === TRUE) {
$zip->extractTo(dirname(__FILE__));
$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