ftell($handle)) //log rotated/truncated $_SESSION['offset'] = 0; //continue at beginning of the new log $data = stream_get_contents($handle, -1, $_SESSION['offset']); $_SESSION['offset'] += strlen($data); echo nl2br($data); } else { fseek($handle, 0, SEEK_END); $_SESSION['offset'] = ftell($handle); } exit(); } ?>
Starting logging, please wait... |
| Download the log: here |