I have a text log file, about 600 MB.
I want to read it using php and display the data on a html page, but I only need the last 18 lines that were added each time I
you can stream it backwards with
$file = popen("tac $filename",'r'); while ($line = fgets($file)) { echo $line; }