写入文件日志 需要文件位置在项目根目录
$res['admin_house_id'] = $appArr['bianhao'];
$res['time'] = date('Y-m-d H:i:s', time());
$log = implode($res,',');
$myfile = fopen("/data/html/58.txt", "a") or die("Unable to open file!");
fwrite($myfile, $log);
fclose($myfile);