nathanmaxsonadil Posted September 12, 2007 Share Posted September 12, 2007 I was wondering how to check if the user agent is IE any version Quote Link to comment https://forums.phpfreaks.com/topic/69096-solved-user-agent-dector/ Share on other sites More sharing options...
madspof Posted September 12, 2007 Share Posted September 12, 2007 This is the function that you would need $_SERVER[‘HTTP_USER_AGENT’] Quote Link to comment https://forums.phpfreaks.com/topic/69096-solved-user-agent-dector/#findComment-347321 Share on other sites More sharing options...
pocobueno1388 Posted September 12, 2007 Share Posted September 12, 2007 Try this: <?php $agent = strtolower($_SERVER['HTTP_USER_AGENT']); if(ereg("msie", $agent)){ echo "Internet Explorer"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/69096-solved-user-agent-dector/#findComment-347322 Share on other sites More sharing options...
nathanmaxsonadil Posted September 12, 2007 Author Share Posted September 12, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/69096-solved-user-agent-dector/#findComment-347323 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.