Hi,
there is a stat command in PHP and the filectime and fileatime are
subcommands that extract one piece of information from the array that stat
returns. It makes things a bit easier and saves about one line of code.
I looked at my Windope box running NTFS and most creation dates
are after the last modified date. I guess it resets the creation date when
I copy a file, which should be treated as a modification (new location, not
a new file). I guess I need to add a calendar control and have the date
picked manually. Ah well....
Thanks for the reply.
David K.
At 11:02 PM 8/14/2006, you wrote:
>On 8/14/2006 22:13, David Krings wrote:
> > No creation time....wierd.
>
>Well I thought it was stored too, but a quick `man 2 stat` says
>otherwise (what you discovered). These various times are filesystem
>dependent and IIRC, there are options you can set to disable certain of
>them to improve performance (noatime mount option, etc...).
>
>NTFS on windows does store creation time and now I really wonder if some
>of the newer filesystems available on Linux actually do have a "ctime"
>stored now, such as XFS, JFS, Reiser and so on. This old box is just
>plain old ext2.
>
> >From the sound of the functions you're using your PHP is abstracting
>things away. I don't know PHP very well, but I do know it shares an
>aweful lot with Perl, and Perl offers direct access to the stat() call.
> You might look to see if that's available and if your (newer?) system
>has a creation time stored. My stat(2) man page is circa 1995.
>
>~Jason
>
>--
More information about the ECLUG mailing list