Page 1 of 1

finding geological area with IP

Posted: Tue Nov 29, 2005 4:55 am
by hame22
Hi all

you would be helping me out greatly if you canhelp me achieve this!

I have a page which displays prices of my service. This service price is displayed in pounds, however what i want to achieve is if the user is from say india display the price in indian rupees.

What i want to do is cathc the users IP and based on its location display the price options

i.e. if the users IP is from US display price in dollars, much like the way I get rediretced to google.co.uk even though I type google.com

is this possible and how do i do this (sorry but this is new to me!)

thanks in advance

Posted: Tue Nov 29, 2005 5:59 am
by shiznatix
viewtopic.php?t=36255

there was quite a discussion about this in that thread. but to rely on a IP address is not smart as it can be spoofed in many ways...but I guess if its just to display the currency then its really not that big of a deal as long as they can change the currency manually if needed eh?

Posted: Tue Nov 29, 2005 6:57 am
by timvw
Btw, that demo has moved to http://timvw.madoka.be/demo/ip2location.php.. But these days virtually everyone is doing the same with google maps... http://timvw.madoka.be/demo/gmap.php

Posted: Tue Nov 29, 2005 7:32 am
by hame22
that looks good,

where does the database, code come from??

i just want to return the country name in text

thanks

Posted: Thu Dec 01, 2005 1:43 am
by timvw
You can get a free country database at http://www.maxmind.com...