file moving problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

file moving problem

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: file moving problem

Post 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?
Post Reply