PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 292 All time: 7,454 This week: 361Up
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
Age: 36
All time rank: 25605 in Armenia Armenia
Week rank: 553 Up3 in Armenia Armenia Up

  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  
This week:0
All time:7,454
This week:361Up