Click here to Skip to main content
12,454,965 members (54,058 online)
Click here to Skip to main content
Articles » Web Development » PHP » General » Alternatives
Alternatives (1)
Add your own
alternative version

Tagged as

Stats

17.7K views
11 bookmarked
Posted

Catching Keywords from Search Engines

, 18 Dec 2009 CPOL
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.

3 Feb 2010
fly904
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)

Share

About the Author

No Biography provided

Pro
Pro
| | Privacy | Terms of Use | Mobile
Web01 | 2.8.160826.1 | Last Updated 18 Dec 2009
Article Copyright 2009 by caprico.caprico
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid