getting query string from referer website

From: Date: Mon, 28 Jun 2004 10:38:15 +0000
Subject: getting query string from referer website
Groups: php.general 
Request: Send a blank email to php-general+get-189134@lists.php.net to get a copy of this message
Hi all, When I use the $_SERVER to get a query string it doesn't ever seem to return me anything: $queryy = $_SERVER['QUERY_STRING']; In my webstats script, 790 are blank and 2 give the value of "loc=uk" and "currentID=6" - not very satisfactuary! Why is this happening? Could I get the search string from the referer web site? It sounds like a bit of a faff, but is this what I have to do? Say a referer website is http://www.google.co.uk/search?q=web+design+for+performers&ie=UTF-8&hl=en&me ta= is there a good way of getting the query string "web design for performers" ? for Yahoo it is different: http://search.yahoo.com/search?p=biography+examples&ei=UTF-8&fr=fp-tab-web-t &n=20&fl=0&x=wrt the search string is followed by "p=" I'd like to list the top ten search keywords and the top ten search phrases. Any ideas? Thanks!

« previous php.general (#189134) next »