Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with file i/o 2

Status
Not open for further replies.

clintcompute

Technical User
Joined
Apr 9, 2003
Messages
2
Location
US
Hi,
I am trying to get an RSS interface set up on my server, and appear to have gotten everything working with magpie ( and the unlimitedpenguins RSS box viewer ( The only problem is, right now Magpie fetches the newsfeed (for example slashdot.org/slashdot.rdf) every time the page is accessed. However, Slashdot gets cranky if you access it more than once every 30 min. So, I would like to be able to copy the remote file to a local file, and access that instead. How would I copy it?

Thanks much,

Clint Olson
CO-n-Co.
co-n-co@mochamail.com
 
Store the last time it was accessed (for eg, in a mySQL database) and check this each time the page is loaded, if it's over 30mins then do as above and write the new time to the database, otherwise use the copy
 
date last modified could be handy :) --BB
 
Don't really need that if you're fetching it every 30mins anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top