Re: Searching MS Word Docs
| From: | Nicole Amashta | Date: | Fri, 08 Feb 2002 19:32:29 +0000 |
| Subject: | Re: Searching MS Word Docs | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11923@lists.php.net to get a copy of this message | ||
OK, I am not exactly sure of the format of word docs off hand. But if they
are an ascii format, you can just read through the file using PHP and use
regular expressions to search for the words. Just a suggestion.
That's just if it's ascii format. Read the whole file into a string, then
search the string with a regular expression function.
http://www.php.net/manual/en/ref.regex.php
Here is some help on regex's if you don't know already.
Nicole Amashta
Web App. Dev.
www.aeontrek.com
"Todd Williamsen" <todd@williamsen.net> wrote in message
news:20020208192757.41472.qmail@pb1.pair.com...
> I have an application in which I would like to search MS Word docs with
PHP
> and I am assuming with COM to perform this. The Documents reside on a
Linux
> box(for now). Now I want to be able to search these documents with
> keywords.
>
> Is this possible? Where do I look to do perform this? Will COM run on
> Linux or will php, mySQL will have to reside on a Windows application?
>
> Thanks!
>
>