Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (7 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 285 All time: 6,630 This week: 1,452Up
Version License PHP version Categories  
shagatail 1.0Free for non-commercial...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
Age: 28
All time rank: 23445 in Armenia Armenia
Week rank: 1816 Up6 in Armenia Armenia Down

  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:285All time:6,630
 This week:0This week:1,452Up