You are here: Re: Urgent Help with currency exchange « PHP Programming Language « IT news, forums, messages
Re: Urgent Help with currency exchange

Posted by NC on 09/30/86 11:43

meenasamy@hotmail.com wrote:
>
> Hi all, i need to create a function that takes three parameters(
> Original currency, needed currency, amount) i need to convert from the
> original currency to the needed currency the amount and return the new
> amount in the needed currency, I need this function to work real time
> (obtaining real time currency exchange rates), any ideas???

Just scrape any Web page that lists the exchange rate you need. Some
possible sources:

http://www.bloomberg.com/markets/currencies/fxc.html
http://finance.yahoo.com/currency
http://fx.sauder.ubc.ca/data.html

The latter two also allow you to obtain data in CSV format. You just
need to figure out how to form the URL to obtain exactly the data you
need. When you have the rate, conversion of the amount becomes
trivial...

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация