PHP: Getting the last 500 lines of a 100MB log file
<p>I've searched for an answer for quite a while, and haven't found anything that works correctly.</p>

<p>I have a log file, 100MB in size, around 140,000 lines of text.
With PHP, I am trying to get the last 500 lines of the file.</p>

<p>How would I get the 500 lines? But with most functions, PHP can't even open the file.</p>
