Forum Moderators: coopster & phranque

Message Too Old, No Replies

automated emptying of a file based on time

is there any way to do this?

         

RoySpencer

2:40 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



Does anyone know whether there is a way to empty a file based upon the clock time? For instance, the file gets generated at 14:41 UTC, is valid until 15:30 UTC, at which time the file is emptied and the SSI stops putting content into the HTML page (in our current plan, the page will always have an "include" for the file...it just won't always have content. Unless there's a better way to do this...e.g. time-dependent includes(?)).

DrDoc

3:24 pm on Apr 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check the mtime for the file and compare it with the current time.