摘要: /**** **PHP在文件指定行数后面插入内容 **参数$file.原始文件名 **参数$line,在第几行插入内容 **参数$txt,要插入的内容 ***/ function insert($file,$line,$txt){ if(!$fileContent = @file($file)){ 阅读全文
posted @ 2020-08-07 23:41 安久 阅读(482) 评论(0) 推荐(0)
摘要: /* * @param editefile // 修改文件的方法 * @param jpath // 旧的文件夹名 * @param xpath // 新的文件夹名 * @param is_dir() // 判断有没有就得目录 * @param rename() // 修改目录的函数 */ func 阅读全文
posted @ 2020-08-07 23:39 安久 阅读(374) 评论(0) 推荐(0)
摘要: $phar = new PharData('station_temple/fljg_temple.tar.gz'); //路径 要解压的文件 是否覆盖 $phar->extractTo('./', null, true); 阅读全文
posted @ 2020-08-07 23:35 安久 阅读(350) 评论(0) 推荐(0)
摘要: public function Import_goods() { if(!empty($_FILES)){ if(@is_uploaded_file($_FILES['upfile']['tmp_name'])){ $http='http://'.$_SERVER['HTTP_HOST'].'/sh 阅读全文
posted @ 2020-08-07 23:30 安久 阅读(285) 评论(0) 推荐(0)