eldan88 Posted March 21, 2013 Share Posted March 21, 2013 Hey, Is there any possible way to set the $_SERVER['HTTP_USER_AGENT'], into a readable string that will echo out only one browser that the client is using? Quote Link to comment https://forums.phpfreaks.com/topic/275977-questions-about-the-_serverhttp_user_agent/ Share on other sites More sharing options...
kjetterman Posted March 21, 2013 Share Posted March 21, 2013 I've been able to do this successfully using Javascript but not PHP. Quote Link to comment https://forums.phpfreaks.com/topic/275977-questions-about-the-_serverhttp_user_agent/#findComment-1420158 Share on other sites More sharing options...
kicken Posted March 21, 2013 Share Posted March 21, 2013 What you'd do is search for indicators that each browser adds and have a list to map indicators to more friendly names. For example if the string contains MSIE then you'd map that to 'Internet Explorer'. Quote Link to comment https://forums.phpfreaks.com/topic/275977-questions-about-the-_serverhttp_user_agent/#findComment-1420174 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.