<?php
$detected = array('msie', 'firefox', 'safari', 'webkit', 'opera', 'netscape', 'konqueror', 'gecko');
preg_match_all( '#(?<browser>' . join('|', $detected) .
')[/ ]+(?<version>[0-9]+(?:\.[0-9]+)?)#', strtolower( $_SERVER[ 'HTTP_USER_AGENT ' ]), $browser );
if(!$browser['browser'][0]=='msie') || $browser['browser'][0]=='firefox' print('Please download Internet Explorer or Firefox browser');
?>
|