When trying to capture there referer ... The cookie google leaves cannot be used by a third party =/ however ...there is a way to do this using $_SERVER['HTTP_REFERER']. It should bring back your H1 Title, Meta and kw ...like this .. HD News is your only source for anything HD News http://www.google.com/search?hl=en&q=hd+news&aq=f&oq so ...q= is the kw, maybe some regular expression can help grabbing this info ..something to remember: http_referer can be blanked or spoofed Does anyone have an alternative to this? Thanks.
You should include the single quotes or you will get php warnings if you have it set to show all errors. Also getenv doesnt work when php is running under windows
$_SERVER and getenv depend on the same data anyway. You're stuck with using the HTTP_REFERER I'm afraid. I'd written a tutorial on how to do it awhile ago, but I got a wild hair up my ass and deleted it. however if you want to pick appart this MOD I wrote for phpBB3 awhile ago, there's an example of how to do it in there too. http://www.phpbb.com/mods/db/index.php?i=misc&mode=display&contrib_id=3210