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 !!!
Dynamic exchange rate !!!
Moderator: General Moderators
-
nowaydown1
- Forum Contributor
- Posts: 169
- Joined: Sun Apr 27, 2008 1:22 am
Re: Dynamic exchange rate !!!
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'.
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'.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Dynamic exchange rate !!!
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/
There are however tons of paid services, i.e. http://www.xe.com/dfs/