This is a discussion on Determining file creation date? within the PHP Language forums, part of the PHP Programming Forums category; Is there a function that determines when a file was created? Like if I wanted to return all the files ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there a function that determines when a file was created? Like if I
wanted to return all the files created in the last month from a directory, is there a way to do that? I've googled and googled but can't find what I'm looking for. Thanks |
|
|||
|
"Matt Traxinger" <MattTrax@yahoo.com> wrote in
news:ck1n1b$fqh$1@news-int.gatech.edu: > Is there a function that determines when a file was created? Like if I > wanted to return all the files created in the last month from a > directory, is there a way to do that? I've googled and googled but > can't find what I'm looking for. Thanks > > > The "stat" function will help you determine a file's timestamp; as will "filemtime". |
|
|||
|
Matt Traxinger wrote: > Is there a function that determines when a file was created? Like if I > wanted to return all the files created in the last month from a directory, > is there a way to do that? I've googled and googled but can't find what I'm > looking for. Thanks Instead of google, use http://www.php.net/ It's the best PHP manual on the web. For the answer to your question, see http://www.php.net/manual/en/function.filectime.php Ken |
|
|||
|
*** Matt Traxinger escribió/wrote (Wed, 6 Oct 2004 17:09:35 -0400):
> Is there a function that determines when a file was created? Like if I > wanted to return all the files created in the last month from a directory, > is there a way to do that? I've googled and googled but can't find what I'm > looking for. Thanks If it's a Linux server, stop searching: creation date is not stored in most Unix file systems. For the available times: fileatime -- Gets last access time of file filectime -- Gets inode change time of file filemtime -- Gets file modification time -- -+ Álvaro G. Vicario - Burgos, Spain +- http://www.demogracia.com (la web de humor barnizada para la intemperie) ++ Las dudas informáticas recibidas por correo irán directas a la papelera -+ I'm not a free help desk, please don't e-mail me your questions -- |