You are here: Re: Finding Date File Created « PHP Programming Language « IT news, forums, messages
Re: Finding Date File Created

Posted by Gordon Burditt on 10/13/05 22:44

>Sorry, I must be blind but I can't seem to find it anywhere.

What do you consider the DEFINITION of "file created" for the purpose
of such a time? In light of such a definition, what does the time
the file was created *MEAN*? I am thinking of such subtle differences
as: (a) a compiler writes over an existing object file, thus *NOT*
changing the create time, vs. (b) a compiler deletes and re-creates
an object file, thus changing the create time. But is there really
a difference between these two cases, since none of the older
contents of the file remains, nor is there any detectable difference
other than the creation time?

If you aren't very careful with the definition of creation time,
the whole thing becomes pretty useless.

>What function will return the time a file was created? I see
>filemtime(...) returns the time that file was last Modified and
>fileatime(...) returns the time that a file was last accessed but what
>about created? Tried php.net and google, nothing =(

TRSDOS II tracked a creation time and modification time, but I doubt
anyone cares any more.

FreeBSD actually tracks such a time but only on a UFS2 filesystem with
FreeBSD 5.0 or greater. Most versions of UNIX track accessed time,
modified time, and inode-changed time, not creation time.

Gordon L. Burditt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация