Search content in multiple file types
Posted: Wed Feb 13, 2008 5:31 pm
Hi there,
With PHP, I am trying to open a series of files (msword, pdf, excel and txt) and search recursively through them returning string matches to a chosen search phrase (similar to how a spider searches sites). I have attempted to use the PHP function 'file_get_contents' but have had little luck reading anything but txt files. Any ideas?
Thanks,
Nathan
With PHP, I am trying to open a series of files (msword, pdf, excel and txt) and search recursively through them returning string matches to a chosen search phrase (similar to how a spider searches sites). I have attempted to use the PHP function 'file_get_contents' but have had little luck reading anything but txt files. Any ideas?
Thanks,
Nathan