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
Loading that size file into memory would probably not be a good idea. This should get you around that.
$file = escapeshellarg($file); $line = 'tail -n 18 '.$file; system($line);