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 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')) { Link to comment https://forums.phpfreaks.com/topic/184998-not-detecting-opers/#findComment-976569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.