Skip to content

Instantly share code, notes, and snippets.

@banarsiamin
Created May 25, 2017 12:45
Show Gist options
  • Save banarsiamin/8dc1d7895cf0fed40373a0b62217e96c to your computer and use it in GitHub Desktop.
Save banarsiamin/8dc1d7895cf0fed40373a0b62217e96c to your computer and use it in GitHub Desktop.
zip file extractor in php to current folder
<?php
$zip=new ZipArchive;
$res=$zip->open('softhub.zip');
if($res===TRUE)
{
$zip->extractTo('./');
$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