nathanmaxsonadil Posted September 12, 2007 Share Posted September 12, 2007 I was wondering how to check if the user agent is IE any version 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’] 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"; } ?> 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 Link to comment https://forums.phpfreaks.com/topic/69096-solved-user-agent-dector/#findComment-347323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.