Currency conversion on the fly

Discuss general web development questions. Help others and get help from others.

Moderator: kfury77

Post Reply
andymat
Posts: 12
Joined: Tue May 06, 2008 9:55 pm
Location: Darlington, UK

Currency conversion on the fly

Post by andymat »

Does anyone know if there is a site on the internet which lists factors for currency conversion that is regularly updated and can be referenced as a variable in PHP calculations?

I would like to provide a € conversion on the basket page of my website to give an idea how much an item would cost in Euros to customers living in the Euro zone. And potentially it could progress from there - possibly selling in other currencies. It would depend on various matters.

Many thanks.
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: Currency conversion on the fly

Post by MikeyB »

Hi,

There are a few, but most seem to cost quite a bit, but did come across this one:
http://forum.xaviermedia.com/about10979.html

You can get the latest rates in XML format, based on the Euro.
http://api.finance.xaviermedia.com/api/latest.xml
andymat
Posts: 12
Joined: Tue May 06, 2008 9:55 pm
Location: Darlington, UK

Re: Currency conversion on the fly

Post by andymat »

Many thanks Mr B, that is pretty much what I was after.

Now comes the fun bit, incorporating it into the PHP!
Post Reply