I wanted to make a php script to show financial information in my webpage. Specifically I want a currence conversor, so if you put in a form an amount of money in some currency an choose from a select the currency to which you want the quantity inserted to be converted, it appears in a box, after submitting, the amount in the new currency. I wonder how do I get the conversion factors from, for example, Google finance? Please help me on that, I need that to make a module for joomla. Thanks.
How to read financial info
you can use an xml feed like this: http://currencysource.ez-cdn.com/USD.xml
and parse it with this: http://nl2.php.net/simplexml
I'd suggest using cache to not redownload the file every time someone wants to take a look.
and parse it with this: http://nl2.php.net/simplexml
I'd suggest using cache to not redownload the file every time someone wants to take a look.
