472,342 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

browser details

hello.
i would like to know how to get the browser details of my surfers (like: ip,
langauge, version, OS, etc').

if you have a link to some information or manual it will be great.

thanks,
Roe.
Jul 17 '05 #1
1 4274
>hello.
i would like to know how to get the browser details of my surfers (like: ip,
langauge, version, OS, etc').

if you have a link to some information or manual it will be great.


The IP address of the browser OR the nearest proxy is in
$_SERVER['REMOTE_ADDR'] (at least on Apache servers, with PHP as a
module or CGI). If a proxy is in use, you really have no way to
determine the user's real IP (and if the real IP is 192.168.0.1,
how many of those are there scattered all over the world?). The
proxies might add headers that give you a hint, or they might lie.
Browsers might also pretend that they are a proxy and lie. Beware
that some round-robin proxies may make requests for pieces of the
same page, and consecutive pages, come from different public IP
addresses.

A string containing browser info is in $_SERVER['HTTP_USER_AGENT'].
Also consider feeding that to the get_browser() function. You
should be able to parse out browser name, version, OS, etc. but
beware that many of the "minority" browsers pretend to be Internet
Explorer or Mozilla to make websites behave or not reject them
outright.

$_SERVER['HTTP_ACCEPT_LANGUAGE'] contains the contents of the
Accept-Language header, if any.

Gordon L. Burditt
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back...
2
by: www | last post by:
I have seen an example of a page that displays the users browser details in a friendly manner like this: Your operating system : Microsoft Windows...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am...
0
by: le0 | last post by:
hi guys can you help me with this, this is my first time to published a website to another server and access it using my browser but this runtime...
13
dmjpro
by: dmjpro | last post by:
i didn't find any place in this site to send my question.... that's why i am here does browser send any info about .... the userAgent is cookie...
2
by: saggydel | last post by:
I have 3 web application these all are independent to each other. 1 web application have .aspx, .aspx.cs, web.config, .dll and some other...
1
by: db007 | last post by:
Hi, I have a problem with a current project and the scroll position. I have an AJAX enabled website using Visual Studio 2005 and ASP.Net 2.0. ...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.