Click here to Skip to main content
15,891,951 members
Articles / Programming Languages / PHP

Catching Keywords from Search Engines

Rate me:
Please Sign up or sign in to vote.
4.30/5 (10 votes)
18 Dec 2009CPOL 23.2K   10  
With this class we try to catch some keywords from google, yahoo and bing search engines.<?phpclass keywords{ private $referer; private $_e; public $keywords; public function __construct() { if($_SERVER['HTTP_REFERER']) { ...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
3 Feb 2010fly904
There is a bug with your regex.Say for example that you were refered to by google.uk/search?q=example&ie=utf-8, your code would return 'example'. If, however, you were refered to by google.uk/search?q=example, it would return 'oops'.The simple fix is to change the limitation variable from...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Serbia Serbia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions