Ideally, the search would be able to search pages with .html and .php extensions (pages generated from MySQL database).[/quote]
HTML files would be relatively easy as long as you parse out the HTML code and don’t use server-side includes for content - or at least the content for which you’re searching.
As for pages generated from a MySQL database - have you thought that through? You’d have to generate the page again each time you went to search it. That might take a while depending on how many pages you’re talking about and the content pulled from the database for each one. Besides - if what you’re looking for is in the database, shouldn’t you be searching the database itself?
And if you don’t understand what I mean, try figuring out how this discussion forum’s “Search” page works. It doesn’t search pages, it searchs the database…