I'm looking to add a small (yet efficient)
PHP-based search engine to a site I'm building.
This site (should) remain fairly static, so I was thinking about indexing all the pages in a database - then the search would simply
query the database and pull out page names
and post links to them.
Or I could write a function that would actually open all the .htm files, write the contents to a string, then search for their "search word(s)" within that string.
I've seen HTdig and David Broker's search on
http://php.warpedweb.net/
But these both seem more complicated that what i'm looking to do. + I'd like to write this myself...
If anyone has any other ideas on a simple search engine let me know!