Artikel in bewerking.
// echo $_SERVER["HTTP_USER_AGENT"].'
';
$sAgent = $_SERVER['HTTP_USER_AGENT'];
$pos = 0;
if ( strpos($sAgent, "like Gecko") == true )
{
$pos = strpos($sAgent, 'Gecko');
// echo "Gecko = IE11 gevonden";
}
if ( strpos($sAgent, "MSIE") == true )
{
$pos = strpos($sAgent, 'MSIE');
// echo "MSIE gevonden";
}
if ( strpos($sAgent, "Edge") == true)
{
$pos = strpos($sAgent, 'Edge');
// echo "Edge gevonden";
}
// echo "pos=".$pos."
";
$sAgent = substr($_SERVER["HTTP_USER_AGENT"], $pos, 4);
// echo $sAgent.'
';
?>
Artikel in bewerking.