php 记录日志
2022-03-24 PHP 2363
function log_record($file,$msg){
$fp = fopen($file,"a+");
$e = fwrite($fp,$msg."\r\n");
fclose($fp);
return $e;
}
echo log_record('test.txt',date('Y-m-d H:i:s'));
self::log_record('test.txt',var_export($msg,1)); 很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论