how can I get file creation date?

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
kassi
Forum Newbie
Posts: 1
Joined: Wed Feb 12, 2003 10:47 am

how can I get file creation date?

Post by kassi »

I'm looking for a way to find out the creation date of a file. I'm using the readdir() to get the contents of a directory but can't find out the date of creation of the listet files.
fileatime(), filectime() and filemtime() all don't do the right job ... (last access, last changed and last modified)
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

I don't think ext2 keeps track of file creation time, filemtime() is last-modified, i believe that is as close as you can get..

The ext2 array flag i_ctime is some places commented as "creation time", but I believe that is wrong, it is the inode's change time, and is (usually) updated whenever the file is access or modified..
Post Reply