How do i get the data from this xml feed?

Hi i try to get the exchange rates from ECB

What do i do to get the information from this website: ?

Like how do i setup the code?

Are you trying to write a page that will query this page once when you open the page, or do you want to set up a task that queries the page once a day and updates a local database? Either would be pretty much the same, use something like file_get_contents() to grab the XML data, parse it and then do what you want with it.

Okay thanks i will try to figure something out, what i want is to get the data once a day :smile:

I would use cURL to get the data and then parse with SimpleXML.

I would use Guzzle.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.