You are here: Re: PHP script to show IP, Location, OS name/version/platform, Browser name/version « PHP Programming Language « IT news, forums, messages
Re: PHP script to show IP, Location, OS name/version/platform, Browser name/version

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация