Search engine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rafael
Forum Newbie
Posts: 2
Joined: Mon Jul 28, 2008 5:08 am

Search engine

Post 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 !
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Search engine

Post 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
rafael
Forum Newbie
Posts: 2
Joined: Mon Jul 28, 2008 5:08 am

Re: Search engine

Post 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!
Post Reply