FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

very simple PHP code to get search query string

 


Lacoste
it will be useful when you need to know or collect search query strings, that brought you user

Code:
if (preg_match("/[?|&][q|p]=([a-z+]+)/i", $_SERVER["HTTP_REFERER"], $match)) {
        $q = urldecode($match[1]);
}
bdoneck
Or you could just check your web stats through cPanel
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.