News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

roScripts.com:
PHP search engine
March 30, 2007 @ 09:55:00

The roScripts website has a new tutorial that anyone just starting out to create a search engine with PHP and MySQL should get their hands...er eyes on. It steps through the creation of a simple PHP-based search engine, showing multiple methods to achieve the goal.

The right search engine on your website won't bring you more traffic but it will help your visitors to better locate things so it will keep them on your pages. A good search engine implemented can increase your hits with almost 30% and this is tested. I'm not talking just to have a tutorial.

The different methods the show how to implement include:

  • using a straight LIKE on each word entered
  • paring down those results using ORs on other columns too
  • implementing the Porter Stemmer algorithm
  • finding matches that contain the term but not only one part of it
  • Full-text searches

It's a good overview of some of the basic steps to getting your own search up and running, but some of them, when applied to sites with larger amounts of data behind them, wouldn't be useful at all (slowness mainly).

0 comments voice your opinion now!
searchengine like fulltext match porterstemmer searchengine like fulltext match porterstemmer


blog comments powered by Disqus

Similar Posts

Wolfgang Drews\' Blog: Some thoughts on indexes & searching in MySQL / PHP

Dikini.net: Rewriting macros - the peculiar case of php

Tiffany Brown's Blog: A better RegEx pattern for matching e-mail addresses

PHP Security Blog: Holes in most preg_match() filters

JSLabs: Wordpress seo: 5 tips for improving search engine visibility


Community Events











Don't see your event here?
Let us know!


example performance symfony2 framework application hack language unittest install hhvm component release project podcast database facebook package introduction composer security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework