View Full Version : Search Engine for Website

04-24-2006, 08:46 PM

Well, as the subject of this thread says. I'm wanting to create an
option on my website that allows visitors to search the entire site for
the phrase they enter into a form. Clicking the submit button will fire
off the search and return links to pages that contain their search phrase.

Do you know of a way to create this using just HTML or PHP? I'd prefer
not to use a MySQL database or some third party software/script. I'd like to write my own script and keep it simple as possible. Any advice would be greatly appreciated.

Thank you for your time,


04-25-2006, 03:11 AM
It's possible to write your own search engine script without using a MySQL database. However, you'll probably find the code to be much simpler with MySQL than without. That said, please see this page (http://moskalyuk.com/php/yourownsearchengine.htm) and this page (http://www.zend.com/zend/spotlight/websearchengine2may.php) for examples of what's involved in building such a script (using MySQL).