PHP Classes

classtailfile: Watch log files to return newly added lines

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-11-05 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 341 All time: 6,523 This week: 1,049Up
Version License PHP version Categories  
filetail 1.0GNU General Publi...5PHP 5, Files and Folders, Logging
Description Author  

This class can be used to watch log files to return newly added lines like the Linux/UNIX tail -f command.

It opens an existing log file and seeks to the end of the file.

The class checks whether any new lines are added. If a new line is added it is returned immediately. Otherwise it waits for a configurable time interval before it checks again whether the log file was updated.

Picture of maaskaas
Name: maaskaas <contact>
Classes: 1 package by
Country: South Africa South Africa
Age: ???
All time rank: 341319 in South Africa South Africa
Week rank: 1669 Up11 in South Africa South Africa Up

  Files folder image Files  
File Role Description
Plain text file classtailfile.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:341All time:6,523
 This week:0This week:1,049Up