Reputation: 15341
Sometimes in case of a bug in our code, we usually ask the end user to provide the browser configuration and OS configuration to isolate the issue. How can we get this information in case of a problem while the end users are accessing a web application.
Upvotes: 2
Views: 130
Reputation: 1349
You can get it with a PHP Function get_browser. You can also get it with a JavaScript Code.
Upvotes: 0
Reputation: 499042
Normally this information will be on the user-agent
header. See some info here.
However, this can be spoofed so should not be treated as gospel truth, nor do all browsers respect the fields and identify themselves properly.
Having said that, most people would not spoof it and the major browsers are reliable. So it can used as a general identifier for OS and browser.
You did not detail what configuration information you need, so this is of course only the basics.
Upvotes: 2