php unzip
$zip = new ZipArchive;
$res = $zip->open('xyz.zip');
if ($res === TRUE) {
$zip->extractTo('/');
$zip->close();
echo 'done';
} else {
echo 'error';
}
$res = $zip->open('xyz.zip');
if ($res === TRUE) {
$zip->extractTo('/');
$zip->close();
echo 'done';
} else {
echo 'error';
}
Comments
Post a Comment