B
Bill H
I am thinking of using the "atime" (last access time in seconds since
the epoch) value returned by stat($filename) to find files (session
ids created by my program) that have not been accessed in 24 hours and
delete them.
But before I do this I thought I would ask if there was a better way
than itterating over all the files in a folder (could be 1000's of
them if the site is busy) and running stat on each and determining if
24 hours has passed?
The other question I had, if I do end up doing this, I should be able
to determine if 24 hours has passed if I subtract the atime from time
to get the number of seconds passed since it was last accessed,
correct?
Bill H
the epoch) value returned by stat($filename) to find files (session
ids created by my program) that have not been accessed in 24 hours and
delete them.
But before I do this I thought I would ask if there was a better way
than itterating over all the files in a folder (could be 1000's of
them if the site is busy) and running stat on each and determining if
24 hours has passed?
The other question I had, if I do end up doing this, I should be able
to determine if 24 hours has passed if I subtract the atime from time
to get the number of seconds passed since it was last accessed,
correct?
Bill H