Gayner Posted December 13, 2009 Share Posted December 13, 2009 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) HOW DO I ADD AND 'OPERA' to it? i tryed it after 'MSIE' but still not detecting opera, i tryed OPERA, Opera, OpErA, not working.. help Quote Link to comment https://forums.phpfreaks.com/topic/184998-not-detecting-opers/ Share on other sites More sharing options...
premiso Posted December 13, 2009 Share Posted December 13, 2009 You can try using stripos : if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { }elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'OPERA')) { Quote Link to comment https://forums.phpfreaks.com/topic/184998-not-detecting-opers/#findComment-976569 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.