Jump to content

How Can I Get User's Browser's Version?


SandySynaptik
 Share

Recommended Posts

Is there a particular reason why you need the version? A lot of people change their user agent string, so there's no real way to tell what browser version they're using, or even what browser they're using.

Link to comment
Share on other sites

You don't need to know what browser they're using to show their IP address. Like I said, there's no real way to find out. You can look at some user agent strings and try to find a regular expression that will get the version from it.

Link to comment
Share on other sites

I know I know that I don't need to know about their browser to show their IP address. Showing IP address is just a part of that. Till now I have extended that page to show.

  1. User's IP address
  2. User's Browser
  3. User's Screen Resolution
  4. and user's User Agent

I want to add more details as possible.

Link to comment
Share on other sites

Is there a particular reason why you need the version? A lot of people change their user agent string, so there's no real way to tell what browser version they're using, or even what browser they're using.
Though really I meant to say that people can change their user agent string, not that it's a common thing to do. I did say you could extract browser information from the user agent string:
You don't need to know what browser they're using to show their IP address. Like I said, there's no real way to find out. You can look at some user agent strings and try to find a regular expression that will get the version from it.
Different user agent strings will probably need different expressions to retrieve the version.
Link to comment
Share on other sites

check this http://au2.php.net/m...get-browser.php $_SERVER['HTTP_USER_AGENT'] itself is unrilable. if you check the header of any request you will see the user agen header also. which is visible there you can assume it can be spoofed and is not reliable. get_browser() also use $_SERVER['HTTP_USER_AGENT']. so there is no determined way to detect browser.

Edited by birbal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...