Detecting Google Chrome Browser

Save to StumbleUpon Stumble Upon it!   Save to Del.icio.us Save to Del.icio.us

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.';
}
?>
 The archive is made using WinZip 12.0. If you're having problems unzipping it, consider using WinRar, WinAce or a similar software to extract the files from the archive.

Be notified when we have new posts by subscribing to  RSS BitRepository RSS Feed.
   Save to StumbleUpon   

One Response to “Detecting Google Chrome Browser”

  1. [...] Probado en BitRepository [...]


Comment on this post!

Subscribe to BitRepository RSS Feed
[Advertise with us]