I posted this in the PHP forum, didn't get any response so it may be more relevant over here.
I have a script that iterates the files in a directory, looking at the stats of each file. If the mTime or aTime is different than the last time it checked, it alerts me to unofficial activity.
Simple in theory, only that on testing it seems the access time is not always updated whenever a file is accessed!
Downloading the files with an FTP client does not update the access time, and nor does browsing to the file by http. However, I have crons running that point an instance of wget to a file by http, and that DOES update the access time.
I don't know why, it doesn't have a good enough pattern for my logic to make sense of it. Google is not helping. I think the access time should be updated every time the file is even listed when looking at a directory!
Any help, please?