function log_result($str) {
if (LOG_WRITEOUT == 1) { $fp = fopen ( "log.txt", "a+" ); fwrite ( $fp, "【日志】" . $str . "日期:" . date ( "Y-m-d H:i:s" ) . "\r\n" ); fclose ( $fp ); }}本文共 227 字,大约阅读时间需要 1 分钟。
function log_result($str) {
if (LOG_WRITEOUT == 1) { $fp = fopen ( "log.txt", "a+" ); fwrite ( $fp, "【日志】" . $str . "日期:" . date ( "Y-m-d H:i:s" ) . "\r\n" ); fclose ( $fp ); }}转载于:https://www.cnblogs.com/ccyum/p/8636038.html