Quantcast
Channel: php parse exchange rate feed XML - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by ZZ-bb for php parse exchange rate feed XML

I didn't find any relevant settings in php.ini. Check with phpinfo() if you have SimpleXML support and cURLsupport enabled. (You should have them both and especially SimpleXML since you're using it and...

View Article



php parse exchange rate feed XML

I am trying to use the currentcy exchange rate feeds of the European Central Bank (ECB) http://www.ecb.int/stats/eurofxref/eurofxref-daily.xmlThey have provided documentation on how to parse the xml...

View Article

Answer by Martin for php parse exchange rate feed XML

This solution works for me:$data = [];$url = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml";$xmlRaw = file_get_contents($url);$doc = new DOMDocument();$doc->preserveWhiteSpace =...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images