Lubos Rendek

The only solution is determination.

Use PHP Code to Detect IE Browser

| Comments

We all know that IE is not something you want to have installed nor use on your computer. The only real problem with IE8 and the whole Microsoft corporation is that they simply refuse to follow standards. The following screen-shot should be enough to prove my point:

Next time, if you would be developing some PHP website please include a following code:

1
2
3
4
5
6
<?php
if(preg_match('/(?i)msie [1-9]/',$_SERVER['HTTP_USER_AGENT']))
{
        echo "Seriously? Please get a proper internet browser and real operating system !";
}
?>

Comments