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.
Posturi asemanatoare
- December 30, 2008dobitoci, fain, funny, noaptea la veverite, plictiseala, programming, retardoizi, smecher, www Fun cu Google Translate
- June 25, 2011AppCleaner Mac, AppFresh, apple, F.lux, Mac OSX, Mac software, macbook pro, MacFuse, NTFS mac, Perian, Quicksilver Mac OSX Software I really like (and use)
- December 29, 2008fain, funny, ganduri, plictiseala, programming, smecher, www Pentru programatori
- January 12, 2010coder social network, fain, programming, România, smecher, snippet, snippify, snipping, webdesign, webdevelopment, weekend, write code, www Snipping snippifying snippets with snippify! – New project launched!
- January 10, 2009antivirus, Microsoft, plictiseala, smecher, testing, Vista, Windows, Windows 7 Windows 7 Beta 1 First Hands-on