Jump to content

Recommended Posts

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..

Link to comment
https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/#findComment-984295
Share on other sites

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..

Link to comment
https://forums.phpfreaks.com/topic/186390-loading-xml-feeds/#findComment-984297
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.