- #PHP解压缩 Zip 文件
- function unzip_file($file, $destination){
- $zip = new ZipArchive() ;
- if ($zip->open($file) !== TRUE)
- die ("Could not open archive");
- $zip->extractTo($destination);
- $zip->close();
- echo "Archive extracted to directory";
- }
本文共 279 字,大约阅读时间需要 1 分钟。
转载于:https://blog.51cto.com/rabbit1987/1153246