browser details

This is a discussion on browser details within the PHP Language forums, part of the PHP Programming Forums category; >hello. >i would like to know how to get the browser details of my surfers (like: ip, >...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2005
Gordon Burditt
 
Posts: n/a
Default Re: 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.


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
Reply With Quote
  #2 (permalink)  
Old 04-26-2005
Roy zo
 
Posts: n/a
Default 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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0