I'm re-designing a site that needs to have a search box. The existing site has thousands of pages that another developer created one at a time not using any database.
So now I'm debating whether I will have to put all the content of the site in a MySQL database so that the search function will work, or if it's possible to use a series of "get_file_contents()" calls to pull the content of the page, then I can search the content for any matches.
I've only used "get_file_contents()" on one site that had a single call to a very lightly coded page, so it was quick enough. Is this a bad approach? Should I instead look into cataloging all the pages using "get_file_contents()" and throw the result in a MySQL database?
Any thoughts or suggestions would be greatly appreciated.
Thanks
Brian