Created
June 24, 2015 19:57
-
-
Save Nav-Appaiya/0c5471de984e4adc5152 to your computer and use it in GitHub Desktop.
PHP Unzipper in a few lines, very sweet!
This file contains hidden or 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 | |
| $unzip = new ZipArchive; | |
| $out = $unzip->open('wordpress-4.2.2-nl_NL.zip'); | |
| if ($out === TRUE) { | |
| $unzip->extractTo(getcwd()); | |
| $unzip->close(); | |
| echo 'File unzipped'; | |
| } else { | |
| echo 'Something went wrong?'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment