samjsharples Posted September 17, 2014 Share Posted September 17, 2014 Hi I'm looking for some advice on how to parse an xml feed and display any odds on my site Here is an example http://feed.youwincdn.com/web/xml/en/youwin_football.xml and as you can see it is quite large so calling it every time would have an impact on the server. I am looking at using many different feeds in the future so want to start this properly and in a scaleable way. I want to use php but open to any ideas on the best way to do this Many thanks Sam Quote Link to comment https://forums.phpfreaks.com/topic/291125-using-xml-feeds-to-display-live-odds-on-website/ Share on other sites More sharing options...
sKunKbad Posted September 18, 2014 Share Posted September 18, 2014 First, 3.4MB isn't a feed, it's a bad decision. If you must deal with such a feed, pull it in with a cron, and store it on your server so you don't have to call it on every request. Call your cached version. Do you need help with parsing? SimpleXML is super easy. Give it a shot and let us know when you get stuck. 1 Quote Link to comment https://forums.phpfreaks.com/topic/291125-using-xml-feeds-to-display-live-odds-on-website/#findComment-1491545 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.