Exchange Rates - PHP with your prices in your users currency
Archive - Originally posted on "The Horse's Mouth" - 2008-05-19 22:42:14 - Graham EllisWould you like to tell your user what your product will cost in his local currency? What a great idea, except that exchange rates change!
The European Central Bank, though, makes a file of exchange rates betweenthe Euro and other currencies avaialble abnd publicly accessible, and you can pick this up in your PHP application - see source code example from our PHP Techniques Workshop
You can run that code here and use our include file that gives you the currency names from here