Where to access currency conversion rates?

Discussion in 'PHP' started by Kerosene, Jan 19, 2007.

  1. #1
    I need to convert USD to other currencies from within a PHP script.

    Anyone know how/where to get an updated currency rate that I can use to work out prices?

    I guess it could be imported via rss and converted to a variable or something.

    Any ideas? I dont' want to reinvent the wheel. Anyone done this before?
     
    Kerosene, Jan 19, 2007 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    Answering my own question incase someone else needs to do this...

    Use RSS parser to get http://currencysource.com/RSS/USD.xml
    Make a variable from the RSS title that has the currency you want
    Remove the text from the var, which leaves you with the rate for that particular currency.
     
    Kerosene, Jan 19, 2007 IP