Last active
March 30, 2016 14:21
-
-
Save mkj-is/4706998 to your computer and use it in GitHub Desktop.
For extracting archives during transferring lots of small files over FTP.
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 | |
$zip = new ZipArchive; | |
$res = $zip->open('Archive.zip'); | |
if ($res === 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