PHP使用ZipArchive进行多文件压缩并下载
ZipArchive进行多文件压缩并下载
多文件压缩其实就是通过数组遍历调用addfile
```php
public function actionZipfile()
{
header("Content-Type:text/html; charset=UTF-8");
$array= array('upload/test.png','upload/test1.png');
// 最终生成的文件名(含路径)
$filename = 'upload/'.da
原创
2020-11-13 15:23:22 ·
275 阅读 ·
1 评论