Developing a Dynamic Document Search in PHP Part 1/2
(Page 1 of 5 )
In today's article Murali discusses how to implement a complete document content search using only PHP and MySQL...
Introduction
I started working with PHP six months ago. I have read many articles on the Internet that gave me better understanding on PHP. I started developing software for “Online Journals” that had the capability of searching a document’s contents. You can find articles in devarticles.com that can perform keyword title and author searches. This article, however, will give you a brief idea of how to develop a document content-based search engine.
What is a Content Search?
In a content-based search, every word in the document is parsed (read) and matched with the search words. Results are displayed based on the matches found.
Reading every word of the article and matching it with the search word over thousands or even millions of documents is very difficult task. Also by default, PHP is configured to run for a maximum execution time of 30 seconds.
Prerequisites
To understand this article, you should have a fair knowledge of PHP. To run the examples given, you need a web sever with APACHE, PHP, and MYSQL software installed and configured. I use PHP version 4.3.1 and MYSQL 2.2.3.
Next: The Article >>
More MySQL Articles
More By Murali Dharan