squiblo Posted August 15, 2009 Share Posted August 15, 2009 Hi, I was wondering if it is possible to code a website so that it can only be viewed in Firefox and if any other browser are being used it will echo and error, can this be done? and how? Quote Link to comment https://forums.phpfreaks.com/topic/170382-firefox/ Share on other sites More sharing options...
DarkendSoul Posted August 15, 2009 Share Posted August 15, 2009 http://ca.php.net/function.get-browser <?php $browser = get_browser(null, true); if ($browser["browser"] == "Firefox") { // Firefox only stuff } else { // Go download a real browser. } ?> Quote Link to comment https://forums.phpfreaks.com/topic/170382-firefox/#findComment-898794 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.