Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FTP .zip
<?php
$zip = new ZipArchive;
$res = $zip->open('FILE_NAME.zip');
if ($res === TRUE) {
$zip->extractTo(dirname(__FILE__)); // Same dir
$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
You can’t perform that action at this time.