(POST UPDATED 8:07pm)
Here's a script snippet. As I said previously, I had a number of requests for scripts that will strip out the keywords from a referrer from a search engine. The code was taken exactly from MT RefSearch (Just copied and pasted this one function here).
Click here to see just the Extract Keyword function from MT RefSearch. (It returns an array with each keyword as one element in the array)
Here's one possible use…to print out each keyword from the referrer:
<?php
$url = getenv("HTTP_REFERER");
$keywords = ExtractKeywords($url);
if ($keywords != "") {
foreach ($keywords as $value) {
echo "Value: $value<br>\n";
}
}
?>