EmperorJazzy Posted March 4, 2011 Share Posted March 4, 2011 I recently read a forum posting regarding detecting the browser being used by the user. The following is a quote from that post; $browser = get_browser(null, true); $browser = $browser['parent']; This would get the browser name and version (i.e. Firefox 1.5). How is this applied in code to 'echo' the browser, and is this the best execution of browser detection? Link to comment https://forums.phpfreaks.com/topic/229603-get_browser/ Share on other sites More sharing options...
Pikachu2000 Posted March 4, 2011 Share Posted March 4, 2011 The manual entry for get_browser() is pretty comprehensive. Have you read it? Keep in mind that you'll need to maintain an up to date copy of browscap.ini, and php needs to be able to access that file. Link to comment https://forums.phpfreaks.com/topic/229603-get_browser/#findComment-1182934 Share on other sites More sharing options...
EmperorJazzy Posted March 8, 2011 Author Share Posted March 8, 2011 I never knew how in control of my web hosting I am until I start asking questions. Amazing! I'll work through the manual. Thanks Pik. Link to comment https://forums.phpfreaks.com/topic/229603-get_browser/#findComment-1184684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.