filemtime() of a Directory???
Posted: Fri May 28, 2004 5:39 pm
Hi,
Is there a function which gets the last modifed time of a directory or the created time of it?
I know you can do it with files using filemtime() - I've used it many times - but it doesn't seem to work for directories i.e.
I've basically got a list of directories (in an array) which I want PHP to sort by the last modified/created time.
Any ideas?
PS: I've tried filectime too but I get the same (apparently) random ordering of directories. I know what the newest one is and it never even appears in the top 10.
Thanks in advance
Is there a function which gets the last modifed time of a directory or the created time of it?
I know you can do it with files using filemtime() - I've used it many times - but it doesn't seem to work for directories i.e.
Code: Select all
$modified = filemtime('C:\\Directory\\Subdirectory');Any ideas?
PS: I've tried filectime too but I get the same (apparently) random ordering of directories. I know what the newest one is and it never even appears in the top 10.
Thanks in advance