Detecting Google Chrome Browser
by Gabriel on 06/10/08 at 2:51 pm
Greetings! Subscribe to my RSS feed or get my latest post directly in your mailbox. Thanks for visiting!
This is a short snippet useful to detect if the visitor uses Google Chrome Browser.
<?php
function is_chrome()
{
return(eregi("chrome", $_SERVER['HTTP_USER_AGENT']));
}
if(is_chrome())
{
// code for Chrome Browser here
echo 'You are using Google Chrome Browser.';
}
?>
Be notified when we have new posts by subscribing to
BitRepository RSS Feed.
BitRepository RSS Feed.Please spread the word! |
|
2 Comments
PHP - PeruCODE » Detectar navegador de Google Chrome en php
Dec 8th, 2008
[...] Probado en BitRepository [...]
John
Jun 6th, 2009
I dont fully understand the need for this?
Leave a Comment