girl Posted February 24, 2013 Share Posted February 24, 2013 Hello.I have a question.I have created a converter. I have table in Mysql, where I bring exchange rates from. But I don wanna update that rates everyday by hand. Is there any way to get that data updated from internet?Thanks Link to comment Share on other sites More sharing options...
birbal Posted February 24, 2013 Share Posted February 24, 2013 Yes you can, there is several ways of getting data from the net. It sounds like you are trying to get textual data from a html page, in That case you can use DomDocumentt to fetch document over 'http' . If your server has http wrapper disabled you can use cURL to fetch the document first and after that use DomDocument to parse it. http://php.net/domdocumenthttp://php.net/curl Link to comment Share on other sites More sharing options...
thescientist Posted February 25, 2013 Share Posted February 25, 2013 I would also look into some of the publicly available API's toohttp://stackoverflow.com/questions/3139879/how-do-i-get-currency-exchange-rates-using-google-finance-api Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now