|
||||
PHP User Agent Check Function - Users Browser Check
php browser check function checking http_user_agent Added: 2008-05-19 08:45:57 This is a simple function that will return the users browser type in an easy to read form, this function can be used to check for in-compatible browsers and redirect if required, just add some if() statements within you own script.
} Pre requisites - Alert function (The following requires this function) You may wish to not allow older browsers to use your site, using the useragent() and alert() functions we can achieve this with the following: <? if(useragent()=='IE 3.0' || useragent()=='IE 4.01') { alert("Your browser is too old to use this browser, please upgrade your browser and try again"); } ?>
Copyright MySpaza.Co.Uk - 2012
|
||||
Comments from other users: