Dynamic exchange rate !!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rahul.pache
Forum Newbie
Posts: 9
Joined: Thu Apr 10, 2008 4:07 am

Dynamic exchange rate !!!

Post 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 !!!
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: Dynamic exchange rate !!!

Post 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'.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Dynamic exchange rate !!!

Post 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/
Post Reply