PHP Classes
elePHPant
Icontem

shagaTail: Get the last lines of a file like the tail command

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-03-26 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 289 All time: 7,068 This week: 1,081Up
Version License PHP version Categories
shagatail 1.0Free for non-comm...5PHP 5, Files and Folders, Logging
Description Author

This class can be used to retrieve the last lines added to a file like using the the Linux/Unix tail command for monitoring log files.

It seek to the end of the file and returns the last line that is added.

The class can check if the file was modified since the last time a line it was retrieved. If it was changed the class can read the last line again.

Picture of Arthur Tumanyan
Name: Arthur Tumanyan <contact>
Classes: 4 packages by
Country: Armenia Armenia

  Files folder image Files  
File Role Description
Accessible without login Plain text file description.php Doc. Description
Plain text file shagaTail.php Class class source
Accessible without login Plain text file tail-usage.php Example example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:289
This week:0
All time:7,068
This week:1,081Up