PHP Get Browser name
if (Strpos ($_server[http_user_agent], ' Maxthon ')) {
??? $browser = ' Maxthon ';
} elseif (Strpos ($_server[http_user_agent], ' MSIE 8.0 ')) {
??? $browser = ' MSIE 8.0 ';
} elseif (Strpos ($_server[http_user_agent], ' MSIE 7.0 ')) {
??? $browser = ' MSIE 7.0 ';
} elseif (Strpos ($_server[http_user_agent], ' MSIE 6.0 ')) {
??? $browser = ' MSIE 6.0 ';
} elseif (Strpos ($_server[http_user_agent], ' netcaptor ')) {
??? $browser = ' Netcaptor ';
} elseif (Strpos ($_server[http_user_agent], ' Netscape ')) {
??? $browser = ' Netscape ';
} elseif (Strpos ($_server[http_user_agent], ' Lynx ')) {
??? $browser = ' Lynx ';
} elseif (Strpos ($_server[http_user_agent], ' Opera ')) {
??? $browser = ' Opera ';
} elseif (Strpos ($_server[http_user_agent], ' Konqueror ')) {
??? $browser = ' Konqueror ';
} elseif (Strpos ($_server[http_user_agent], ' Firefox ')} {
??? $browser = ' Firefox ';
} elseif (Strpos ($_server[http_user_agent], ' Safari ') {
??? $browser = ' Safari ';
} else {
??? $browser = ' other ';
}
Echo $browser;