Scooby08 Posted December 26, 2009 Share Posted December 26, 2009 I'm looking for any ideas as to how one would load large xml files, from an external url, and display the contents in the quickest fashion.. Right now I'm loading using "simplexml_load_file" and it takes about 12 seconds to load the file, which is far too long.. Would anybody out there have any ideas on faster loading for this situation?? Any ideas are appreciated.. Doesn't even have to be a php solution.. I just have no idea what to look for to get this to load fast.. I did copy the file locally and it loads super fast.. Maybe there's a way to read that external xml file and save it locally and then I could just read that one.. But then again I have no idea how to set that up as well.. Thanks for any replies.. Quote Link to comment https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/ Share on other sites More sharing options...
mikesta707 Posted December 26, 2009 Share Posted December 26, 2009 A lot of how fast you can read something depends on the connection to the server/server's connection to the other server. Saving locally would make loading it fastest, but loading a large file from another server is gonna take a bit of time regardless. You may be able to speed it up a little with AJAX, but beyond that, I'm not sure of any way to speed it up much. Quote Link to comment https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/#findComment-984295 Share on other sites More sharing options...
Scooby08 Posted December 26, 2009 Author Share Posted December 26, 2009 Ok thank you mikesta707.. I'm actually trying to load an xml file that contains live sports feeds, so if anybody out there knows how these guys with sports betting sites load their scores and lines so fast please do leave a reply as to how I could do so.. Thanks guys.. Quote Link to comment https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/#findComment-984297 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.