- $aOutdata = array($hLog[0], $sEndTime, $iNumResults, $hLog[4], $hLog[2]);
- $fLog = fopen(CONST_Log_File, 'a');
- flock($fLog, LOCK_EX);
- fputcsv($fLog, $aOutdata);
- fflush($fLog);
- flock($fLog, LOCK_UN);
- fclose($fLog);
+ $aOutdata = sprintf("[%s] %.4f %d %s \"%s\"\n",
+ $hLog[0], $fEndTime-$hLog[5], $iNumResults,
+ $hLog[4], $hLog[2]);
+ file_put_contents(CONST_Log_File, $aOutdata, FILE_APPEND | LOCK_EX);