KWSullivan Posted October 27, 2009 Share Posted October 27, 2009 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 Link to comment https://forums.phpfreaks.com/topic/179254-transform-xml-refresh-every-15-seconds-retain-timestamp/ Share on other sites More sharing options...
KWSullivan Posted October 28, 2009 Author Share Posted October 28, 2009 Got it! [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/179254-transform-xml-refresh-every-15-seconds-retain-timestamp/#findComment-945904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.