PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 293 All time: 7,481 This week: 488Up
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 (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:293
This week:0
All time:7,481
This week:488Up