Created
August 26, 2016 16:30
-
-
Save joshhartman/56f02c934f056bf0eb3d66771324c5c4 to your computer and use it in GitHub Desktop.
Extract ZIP file to current directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$zip = new ZipArchive; | |
if ($zip->open('test.zip') === TRUE) { | |
$zip->extractTo('.'); | |
$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