The Code-Bin
Last Logfile Lines
Posted by: Stephen | March 10, 2007 @ 10:14am
Revision 1 - Original post on March 10, 2007 @ 9:37am

PHP Code



Syntax Highlighting





Author Comments
This code will load just a snippet of your logfile and display the last n bytes. It is quick, and uses very little memory, as opposed to loading the entire logfile in an array and printing the last x entries.
Rating


4.55 / 8
968 Votes