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
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