Tag: browser detection
Detect Chrome with PHP
by Andrei on Nov.04, 2008, under Viata in 1 si 0
We all have trouble sometimes with the render engine of Google Chrome, so here is a PHP way to identify it, using the HTTP_USER_AGENT.
<?php
$mystring = $_SERVER['HTTP_USER_AGENT'];
$findme = 'Chrome';
$pos = strpos($mystring, $findme);
if ($pos === false) {
echo "stuff to be seen in all other browsers";
} else {
echo "stuff to be seen in Chrome";
}
?>
Feel free to use and improve this.
read more...
Comments Off on Detect Chrome with PHP
:browser detection, google chrome, PHP, programming, user agent