标签:
<?phpfunction writeLog($msg){ $logFile = date(‘Y-m-d‘).‘.txt‘; $msg = date(‘Y-m-d H:i:s‘).‘ >>> ‘.$msg."\r\n"; file_put_contents($logFile,$msg,FILE_APPEND );}
php 原生简版日志导出
原文地址:http://www.cnblogs.com/liuwenbohhh/p/4377575.html