|
Posted by Janwillem Borleffs on 06/19/06 20:12
Marcus wrote:
> I know I can get a client's IP address with $_SERVER['REMOTE_ADDR'],
> but I was wondering if I could use PHP to get any additional
> information, such as the client's geographic location (zip code would
> be preferable), or even just the zip of the ISP.
To get the ISP's/domain registrar's address, you need to use "whois"; search
for "php whois" to get some ready to use scripts.
There are also database solutions, like GeoIP, which provide you with the
country (and sometimes additional geographical data) the IP originates from.
JW
Navigation:
[Reply to this message]
|