Thanks a lot for this. I will try to implement this in my site. Does anyone
have any other suggestions?

-----Original Message-----
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:06 PM
To: Sebastian A.
Cc: PHP General List (PHP.NET)
Subject: Re: [PHP] Searching Many Text Documents

On Wed, 29 May 2002, Sebastian A. wrote:
> I recently have run into a situation where I must search through many text
> (XML) documents. I would like to implement a search feature on my site
> can search through the XML documents I use for my pages. I will probably
> need to search all the files in a specific directory for a certain term or
> keyword. Does anyone know how I can do this? And please remember, I need
> search through more than just 1 file.

To do it efficiently, you need to pre-index the documents. Rather than
starting from scratch, better to see if there's something already written
that can do it for you. For starters, have a look at:


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to