browsertest2.php

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Your Browser (version 2)</title>
</head>
<body>
<?php
    if( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE )
      {
?>
<h1>Hello</h1>
<p>You are using Internet Explorer version 10 or earlier (or you have
enabled Compatibility View).
</p>
<?php
      }
    else
      {
?>
<h1>Greetings</h1>
<p>You are not using Internet Explorer version 10 or earlier.</p>
<?php
    }
?>
</body>
</html>