Skip to content

Instantly share code, notes, and snippets.

@biswarupadhikari
Created September 7, 2013 05:20
Embed
What would you like to do?
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