Jump to content


Photo

I need a Thread help


  • Please log in to reply
1 reply to this topic

#1 indu

indu
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 August 2006 - 12:24 PM

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



#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 06 August 2006 - 12:37 PM

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
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users