摘要: public function readFile($path){ $data = array(); $returnTxt = ''; // 初始化返回 $i = 1; $fh = fopen($path,"r"); while (!feof($fh)){ $line = fgets($fh, 409 阅读全文
posted @ 2018-05-10 15:49 lsbaiwyl 阅读(226) 评论(0) 推荐(0) 编辑
摘要: //解压tar.gz, gz public function unzip_gz($gz_file){ if(!strpos($gz_file,'.gz')){ return false; } $buffer_size = 4096; // read 4kb at a time if(strpos($ 阅读全文
posted @ 2018-05-10 15:46 lsbaiwyl 阅读(159) 评论(0) 推荐(0) 编辑
摘要: function getFile($url, $save_dir = '', $filename = '', $type = 0) { if (trim($url) == '') { return false; } if (trim($save_dir) == '') { $save_dir = ' 阅读全文
posted @ 2018-05-10 15:44 lsbaiwyl 阅读(180) 评论(0) 推荐(0) 编辑