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 ); }}