FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
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
Related topics

Simple PHP forum code needed!
I need a VERY simple php script
Was playing around with PHP...
mySQL Query/PHP code - get the highest value...
VERY simple php script needed

Show PHP Code
What is a good or bad php code?
Securing your php code
very very basic php editor (only WRITING)
Simple PHP Navigation

another simple php request
Actionscript 2.0 - add line break to string?
How to build simple PHP upload form
simple php problem, please help...
Tutorial Submiter
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.