I am working on a project for my website and am wondering if I can create a php script that will gather data off a remote site once every three hours, and create an XML page that my site can call up instead of having the remote site flooded with the same request from my site everytime a user accesses the data gathered from the remote site.
Can the page that I gather data from be cloned into my site and then the data accessesd and displayed from there?... or can I gather the data and have it written to another page on my site that will display the data as the users call up the page?
The remote site updates every 3 hours.
Ideally this is where I am heading......
Check time
If ttime = time+3 hours then gather data and update XML page
else check time
User accesses the weather page and the data is called from the local page instead of the remote page.
The reason for asking about XML is that I have a charting soft that calls on an XML page for data. If I can gather the data from the remote site and have the XML page created from that data it would save a lot of time getting the page up I want to add to my site.