26643Google Searchhttp://www.project09.com/tutorials/PHP/google-search/In this tutorials, we are going to learn how to let users search your site, without building a search engine. This can be useful if your pages are all html, or you do not have the time to build your own website search engine. This won't work unless your pages are indexed by google, if they're not, you can go to here to add them to googles index.PHP > Tips and Tutorials > SearchingOct 16, 2006
In this tutorial, we will discuss a method of searching web pages for keywords. We will provide methods for exact keyword matching and a type of fuzzy search. Fuzzy searching enables us to find words that are similar to the keyword we searched for. This is extremely useful when the search for an exact keyword does not produce any results. In fact, in our search script we will only utilize fuzzy searching when we do not get results from a normal keyword search.
Searching each HTML page for keywords could become pretty involved in a dynamic environment and put a lot of load on the server. It would be more efficient for me to allow users to search a smaller pool of specific information. While writing and creating these diary entries I have tried to use descriptive meta tags so that these diary entries would draw the attention of external search engines, but also so that when I got to the point where I would create an onsite or internal search engine, I'd have a useful pool of information to work with. Also, I went back through every page and updated the meta tags so that they would be properly indexing the content in that days diary entry.
basics of PHP and continue it with how to enable visitors to search your site, using PHP.
We'll take you step by step on a fairly simple search feature. From the actual form, to the results and several things you can do to make your search better.
If your PHP installation is Unix/Linux, rather than Windows, you don't have access to PHP's COM abilities. This makes it difficult to extract infomation from Microsoft Word documents.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.