indu Posted August 6, 2006 Share Posted August 6, 2006 Hi All,I am new to this forum..seems here i will find a solution.I need to refresh an xml file , grabbed from one website., in every 15 minutes. My website is taking data from this xml file and displays the stock information. As the loading and parsing takes some delay , i thought of refreshing the xml in every 15 mintes without affecting my website display. I thought of having some thread class(as in Java) which keeps on calling the function in every 15 minutes. Is this a good solution?Also when i save the xml file how can i write to the file without causing any access problems to the website users.Thanks Link to comment https://forums.phpfreaks.com/topic/16702-i-need-a-thread-help/ Share on other sites More sharing options...
shocker-z Posted August 6, 2006 Share Posted August 6, 2006 yeah you could do that or make a little perl script to grab the xml and store it local.. also you could store date and time of the xml update in a database and then check that to see if it was over 15minutes when user loads the page and if so then update and update the database therefore it will only load slow if a user loads the page and data is over 15minutes old.RegardsLiam Link to comment https://forums.phpfreaks.com/topic/16702-i-need-a-thread-help/#findComment-70175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.