acemilik donemimden kalan bir fonksiyon :
<?php
function detectbrowser()
{
$agent = $_SERVER['HTTP_USER_AGENT'];
if(strstr($agent,'Firefox')){ return 'Firefox'; }
if(strstr($agent,'Opera')){ return 'Opera'; }
if(strstr($agent,'MSIE')){ return 'Internet Explorer'; }
if(strstr($agent,'Chrome')){ return 'Google Chrome'; }
if(strstr($agent,'Netscape')){ return 'Netscape'; }
if(strstr($agent,'Safari')){ ; return 'Safari'; }
return 'Bilinmiyor';
}
echo detectbrowser();
?>