User Agent Information

Browser detection done by PHP :

$_SERVER['HTTP_USER_AGENT']
CCBot/2.0 (http://commoncrawl.org/faq/)

Simple mobile/desktop detection example :

$ua=$_SERVER['HTTP_USER_AGENT'];
if (preg_match('/android|mobile|tablet|ip(od|hone)/i',$ua)) { echo 'Mobile'; }
else { echo 'Desktop'; }

Result : Desktop

 

Browser detection done by Javascript (if enabled) :