I'm trying to detect googlebot, or more to the point have some code not run when googlebot is viewing the page
This is what I am using
if (strpos(strtolower($_SERVER[‘HTTP_USER_AGENT’]), "google") === FALSE)
However google bot appears to be still running the code, anybody any ideas?