Login   Register  
PHP Classes
elePHPant
Icontem

Class Grep Search: Search files in directories like grep

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Cinu Chacko
Name: Cinu Chacko <e-mail contact>
Packages: 1 Browse all classes by Cinu Chacko Browse all classes by
Country: India India - PHP jobs in India
Age: 38
All time rank: 2560162 in India India
Week rank: 2051 Up142 in India India Up


  Detailed description   Download Download .zip .tar.gz  
This class can be used to search files in directories like the Unix command grep.

It can traverse a given directory recursively and search for a given text the contents of files with a given list of file name extensions.

The path of the files that have the given text is stored in a class array variable and the class returns the number of occurrences.

The idea of the class was inspired on the Grep Simulator class written by Er. Rochak Chauhan.

  Classes of Cinu Chacko  >  Class Grep Search  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Class Grep Search
Base name: classgrepsearch
Description: Search files in directories like grep
Version: 1.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 654 users
All time rank: 4397
Week users: 0 users
Week rank: 1095 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Searching Search engines, crawling and indexing View top rated classes


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file 11.txt Data example text files
Plain text file ClassGrepSearch.inc.php Class Main Class
Accessible without login Plain text file exampleSearch.php Example Called from exampleSearchForm.php which executes the commands
Accessible without login Plain text file exampleSearchCustomFunctions.php Aux. Customizable Functions used with the Search.
Accessible without login Plain text file exampleSearchForm.php Example Main form which starts the demo.
Accessible without login Plain text file getFileContents.php Aux. Display file contents.
Accessible without login Plain text file readme.txt Doc. Class Documentation and License

Download Download all files: classgrepsearch.tar.gz classgrepsearch.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.