Created
December 25, 2016 03:03
-
-
Save gelanivishal/c8698a5ca9b6b39a07959a03898f3596 to your computer and use it in GitHub Desktop.
PHP: Extract zip file
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 | |
//echo '<pre>';print_r($_SERVER);exit; | |
$zip = new ZipArchive; | |
if ($zip->open('magmi_full_0.7.21.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