Determining file creation date?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2004
Matt Traxinger
 
Posts: n/a
Default Determining file creation date?

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


Reply With Quote
  #2 (permalink)  
Old 10-06-2004
Ehtor
 
Posts: n/a
Default Re: Determining file creation date?

"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".


Reply With Quote
  #3 (permalink)  
Old 10-06-2004
Ken Robinson
 
Posts: n/a
Default Re: Determining file creation date?


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

Reply With Quote
  #4 (permalink)  
Old 10-06-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: Determining file creation date?

*** 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
--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0