Skip to content

Instantly share code, notes, and snippets.

@ratulcse10
Created December 28, 2015 21:12
Show Gist options
  • Save ratulcse10/d655a57975be6e71b06d to your computer and use it in GitHub Desktop.
Save ratulcse10/d655a57975be6e71b06d to your computer and use it in GitHub Desktop.
how to extract zip using php
<?php
$zip = new ZipArchive;
if ($zip->open('sedona.zip') === TRUE) {
$zip->extractTo('newcode');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment