• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share Unzip file bằng php

Boy97

New Member
Thay tênfile bằng file muốn giải nén.Tạo file unzip.php
PHP:
<?
php$zip = new ZipArchive;$res= $zip->open("tênfile.zip");if ($res==TRUE ) {$zip->extractTo("giainen/");$zip->close();echo "Unzip Thành Công";} else {echo "File có vấn đề,không thể unzip.";}
?>
Chạy đường dẫn domain/unzip.php .Nếu kết quả là "Unzip thành công" thì đã giải nén xong.Nếu báo ngược lại là file bị lỗi.
 
Last edited:

Facebook Comments

New posts New threads New resources

Back
Top