PHP Classes

tail: Get the last lines of a file as the tail command

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-12-16 (9 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 1,730 All time: 2,148 This week: 1,107Up
Version License Categories  
tail 1.0GNU Lesser Genera...HTML, XML, Files and Folders, Text pr...
Description Author  

This class can be used to get the last lines of a file like the Unix tail command.

It can also filter the retrieved lines so only the lines that have a certain keyword or match a given regular expression are returned, like when using the Unix grep command.

It uses pure PHP commands so it can work on non-Unix like systems.

The maximum number of returned lines is configurable. The retrieved lines are returned as a text string. The retuned text may be highlighted or even formatted as an HTML list, or as XML document.

Picture of Bastian Gorke
Name: Bastian Gorke is available for providing paid consulting. Contact Bastian Gorke .
Classes: 3 packages by
Country: Germany Germany
Age: 34
All time rank: 648 in Germany Germany
Week rank: 1602 Down81 in Germany Germany Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.tail.php Class the class-file
Accessible without login HTML file description.html Doc. documentation, based on example
Plain text file showfile-example.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,730All time:2,148
 This week:0This week:1,107Up
 User Ratings  
 All time