Page 1 of 1

Dynamic exchange rate !!!

Posted: Sun Apr 27, 2008 7:21 pm
by rahul.pache
I want to make a website which display the price in the currency of the country it is being accessed from.

Is there any way to get the current exchange rate in the web ?
How can i know country from an IP address ?

Thanks !!!

Re: Dynamic exchange rate !!!

Posted: Sun Apr 27, 2008 7:28 pm
by nowaydown1
It sounds like what you're really talking about is localization. There's tons of stuff that's already been written on different methods for handling localization for things like currency, dates, times, etc. I would encourage you to do some sniffing around on Google to see what you can come up with.

As far as knowing a country from an IP address, there are packages out there that can map IP addresses to geographical locations. Search for 'geo ip php'.

Re: Dynamic exchange rate !!!

Posted: Sun Apr 27, 2008 8:17 pm
by John Cartwright
You'll not likely find a free and legal solution to getting up to date exchange rates.

There are however tons of paid services, i.e. http://www.xe.com/dfs/