Detect Goolge Chrome browser not working
Posted on 2010-09-16
I'm tring to detect the google chrome browser like this:
<? if (strpos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== FALSE)
echo "you're chrome..";
echo "not using google chrome.....!";?>
But it doesn't work..
This does work:
<? if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE)
echo "you're ie..";
echo "no ie!";?>
What am i doing wrong? I would says its in the name "chrome" because the code is the same..