PHP Class Grep Search

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.

Features include

1) Match all words in text line.

2) Match any Word in text line.

3) Match Exact phrase in text line.

4) Case sensitive search.

3) Search in specified Subdirectories.

4) Get search count for keyword only.

Find the script here.
Find package in phpclasses.org here
Here is the full link
http://www.seraphimtech.net/repository/classgrepsearch-2008-08-20.zip

Post your comments in forum here.