
November 2nd, 2012, 11:07 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 13
Time spent in forums: 1 h 33 m 37 sec
Reputation Power: 0
|
|
|
PHP-General - Search a list of files for key words
I have a series of files that I have to search for certain key words. I have the key words in a mysql table and have the file path/name in another table. Is there a way to search for the key words, looping through each file and then looping through each key word and when a match is found write the file name and key word to a mysql table?
The files I want to search are imap email files and need to search them for key words. I didn't know if using grep was possible or just using strpos after getting the file contents would be adequate.
Any help would be appreciated.
Thanks,
Tom
|