Page 1 of 1

file moving problem

Posted: Fri Nov 14, 2008 12:48 am
by susrisha
I have a folder named convert_requests.

This is the problem i have..I want to run a php that will look for all the files in the folder convert_requests.
If the difference between creation time of file and the present time is more than 7 days, i want to move the file to another folder.

i have seen the function filemtime but it shows only the last modified time not the creation time.

Can someone help me with this?
Thanks in advance

Re: file moving problem

Posted: Fri Nov 14, 2008 1:54 am
by requinix
File creation time is a Windows invention. It isn't present on Unix systems.
As such, PHP doesn't have a way of telling you that.

In a lot of cases, creation time and modification time are the same. Have you considered that?