Jump to content

I need a Thread help


indu

Recommended Posts

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
Share on other sites

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.

Regards
Liam
Link to comment
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.