Jump to content

Transform XML, refresh every 15 seconds & retain timestamp


KWSullivan

Recommended Posts

My goal is to create a web page that will transform an existing XML file (whose data changes every 10 seconds) with an existing XSL stylesheet every 15 seconds.  I can do this by using "header("refresh: 15;");".  However, I need to determine if the data in the XML file has changed since the last time it was read.  One of the XML file elements is a time stamp so, theoretically, this is possible.  My problem is retaining the timestamp each time the page refreshes (or the script/function executes).

 

I'm looking for suggestions on the best way to accomplish this.  I assume if the php script is running at the server, it should be able to read the time stamp, compare it to the previous "scan", and either generate an error or continue with the transformation.  Obviously, the header refresh is not the way to go since that's executed as html.  Would a session help?  I'm open to all suggestions...

 

Thanks,

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.