GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Referring keyword PHP script? (https://gfy.com/showthread.php?t=756150)

Voodoo 07-31-2007 01:36 AM

Referring keyword PHP script?
 
Does anyone have that snippet of code that was floating around that captures the referring keyword from the search results on Google / Yahoo etc... and displays the keyword/phrase on the landing page?

If so, please post.

Thanks.

SmokeyTheBear 07-31-2007 02:22 AM

heres a really simple one , im sure there are better ways to do it

Code:

<?php
$ref=@$HTTP_REFERER;
$exr = explode("q=",$ref);
$exk = explode("&",$exr[1]);
$sekeyword = "$exk[0]";
echo $sekeyword;
?>


Voodoo 07-31-2007 02:27 AM

Quote:

Originally Posted by SmokeyTheBear (Post 12847138)
heres a really simple one , im sure there are better ways to do it

Code:

<?php
$ref=@$HTTP_REFERER;
$exr = explode("q=",$ref);
$exk = explode("&",$exr[1]);
$sekeyword = "$exk[0]";
echo $sekeyword;
?>


Nice, thanks!


All times are GMT -7. The time now is 03:40 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123