Has anyone had any luck getting these to work? I'm not a PHP programmer, so maybe that's part of the problem. I just need a simple script that says, "You came from [search engine] and searched for [search phrase]." Anyone have anything like this? Or can you explain how to use the PHP code on this page to accomplish this?
This is really great and simple code to pull out the keywords and search engine. can you pls give code to decide whether that referer url is paid one or normal search link?
I use this code and also use another code: <?php // take the referer $thereferer = strtolower($_SERVER['HTTP_REFERER']); // see if it comes from google if (strpos($thereferer,"google")) { // delete all before q= $a = substr($thereferer, strpos($thereferer,"q=")); // delete q= $a = substr($a,2); // delete all FROM the next & onwards if (strpos($a,"&")) { $a = substr($a, 0,strpos($a,"&")); } // we have the results. $mygooglekeyword = urldecode($a); } ?> PHP: But all of them face a problem and they can't calculate the keyword when i am login on google,gmail etc. I mean that when i am login in google and on the same browser when i search and go to the page then this code don't calculate the keyword. Please give me solve , Its urgent.
This is very good share. I thing I will save this then make my friend to help me installing this. Thanks for nice stuff.