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? 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. } ?> Link to comment https://forums.phpfreaks.com/topic/170382-firefox/#findComment-898794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.