Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
$url="http://www.google.com/search?q=spyware&meta=";
//$url=$_SERVER['HTTP_REFERER'];
@extract(@parse_url($url));
if (preg_match('/((fr|g)oogle|msn|yahoo|alexa)/i', $host) AND preg_match('/q(uery)?=([^&]+)/i', $query, $keywords))
{
$keywords = array_unique(preg_split('/[\s\+]+/', rawurldecode($keywords[2]), -1, PREG_SPLIT_NO_EMPTY));
foreach ($keywords as $keyword)
{
echo "You come from $host with keyword [".$keyword."]";
}
}
1 to 2 of 2