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 enough user ratingsTotal: 293 This week: 1All time: 7,477 This week: 560Up
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: 37
All time rank: 25685 in Armenia Armenia
Week rank: 411 Up2 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  
 0%
Total:293
This week:1
All time:7,477
This week:560Up