Page 1 of 1

Search engine

Posted: Mon Jul 28, 2008 5:13 am
by rafael
Hi,

I'm trying to build a simple search engine, which should be added to a site that is not using Databases or other php stuff (only html pages)
The search engine should go over all the site pages and check if the searched words are there.

My problem is that this site sometimes add few pages. How can the search engine recognize all those new pages automatically? :|

Thanks !

Re: Search engine

Posted: Mon Jul 28, 2008 5:56 am
by jayshields
You could recursively go through every .html file in your websites root directory, grabbing all the file contents, then use something similar to EverLearning's code in this thread viewtopic.php?f=1&t=85946

Re: Search engine

Posted: Mon Jul 28, 2008 6:03 am
by rafael
How can I go recursively through every .html file in my the root directory?
Which function can I use here?

Thank you very much!