摘要: function deldir($dir) { //先删除目录下的文件: $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; if(!is_ 阅读全文
posted @ 2021-08-18 10:54 北往星辰 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1.压缩zip类 class FileService { /** * 文件夹打包zip并下载 * @param string $path 源文件路径 * @param string $filename 压缩文件名 */ public static function zipDown($path="", 阅读全文
posted @ 2021-08-18 10:37 北往星辰 阅读(604) 评论(0) 推荐(0) 编辑