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
Use fopen, filesize and fseek to open the file and start reading it only near the end of the file.
fopen
filesize
fseek
Comments on the fseek manual page include full code to read the last X lines of a large file.