codigo que utilice:
Código PHP:
function is_chrome()
{
return(eregi("chrome", $_SERVER['HTTP_USER_AGENT']));
}
// muestro en pantalla el navegador chrome...
if(is_chrome()){
echo 'Google Chrome.';
}
Código PHP:
$u_agent = $_SERVER['HTTP_USER_AGENT'];
$ub = '';
if(preg_match('/MSIE/i',$u_agent))
{
if(preg_match('/Chrome/i',$u_agent))
{
$ub = "Google Chrome";
}
}