使用PHP创建货币转换器 [英] Creating Currency converter using PHP
本文介绍了使用PHP创建货币转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好吗?
有人可以帮助我使用PHP创建可以自动更新汇率的货币转换器吗?
How are you friends?
can anybody help me to create currency converter using PHP which update rates automatically?
推荐答案
因此,您实际上只能使用拉技术,要求您的金融网站提供汇率并提取这些网站的数据.我希望您知道如何进行微不足道的计算以使用比率转换值.您真正需要的就是也要学习网站网站抓取.
这是一个教程: http://www.bradino.com/php/screen-scraping/ [ ^ ].
现在,当您熟悉该术语时,您可以找到更多代码示例和建议:
http://en.lmgtfy.com/?q=php+site+scraping [ ^ ].
祝你好运,
—SA
So, you can really only use pull technology, requesting your financial sites for rates and extracting this data from those sites. I hope you know how to do those trivial calculation to convert values using the rate. All you really need is too learn site Web site scraping.
Here is a tutorial: http://www.bradino.com/php/screen-scraping/[^].
Now when you are familiar with the term, you can find some more code samples and advice:
http://en.lmgtfy.com/?q=php+site+scraping[^].
Good luck,
—SA
这篇关于使用PHP创建货币转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文