Reputation: 16495
I am trying to check a time in which a specific file was accessed, so I tried to go with checking the date first.
var_dump(date('d', fileatime('clientNames.txt')));
//string '13' (length=2)
Now, normally the date in which the file was accessed/changed should be shown, but instead I see 13
even in the file properties, Nov 13
. That was the time when the file was created, but I have modified it many times after than, however fileatime()
always gives creation date.
I even tried to clear the cache clearstatcache();
still it shows 13
Upvotes: 0
Views: 110
Reputation: 158090
Try to call:
clearstatcache();
before fileatime()
. Function manual
Upvotes: 1