|
Posted by NC on 09/03/06 23:21
GrumPlayer wrote:
>
> Does anyone have a script for this?
User's IP address is avaialble as $_SERVER['REMOTE_ADDR']. Location
has to be deduced based on the IP address (Google for GeoIP), and
deduction will not be perfect, since you will be shown the location of
IP block owner (for example, it is likely that all AOL users will be
identified as located in Virginia). OS name/version/platform and
browser name/version can be parsed out of $_SERVER['HTTP_USER_AGENT'].
Note, however, that browsers are not required to submit any of this
information in an HTTP request. Additionally, some browsers can be
configured to submit custom information rather than true one.
Cheers,
NC
Navigation:
[Reply to this message]
|