PHP Classes

Search File Contents: Search files in a directory for a given text

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
StarStarStar 50%Total: 1,886 All time: 2,092 This week: 488Up
Version License PHP version Categories
searchfilecontents 1GNU General Publi...3.0Files and Folders, Searching, Text pr...
Description 

Author

This class can be used to search files in a directory for a given text phrase.

It can traverse a given directory recursively to locate files with certain file name extensions.

The class opens the files found and checks whether they contain the search phrase.

It returns an array with the list of all files that contain the search phrase.

Picture of Nick Pap
Name: Nick Pap <contact>
Classes: 4 packages by
Country: Greece Greece

 

  Files folder image Files (1)  
File Role Description
Plain text file searchFileContents.php Class class and example

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:1,886
This week:0
All time:2,092
This week:488Up
User Ratings User Comments (2)
 All time
Utility:85%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2738