PHP Tail Command Emulator
A script which returns a configurable number of lines in a file, starting from the end of the file. The script is designed to emulate the tail command in Unix.
I originally wrote the script when I needed to parse the last section of a log file at regular intervals in PHP.