Determining file creation date?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Traxinger

    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


  • Ehtor

    #2
    Re: Determining file creation date?

    "Matt Traxinger" <MattTrax@yahoo .com> wrote in
    news:ck1n1b$fqh $1@news-int.gatech.edu:
    [color=blue]
    > 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
    >
    >
    >[/color]

    The "stat" function will help you determine a file's timestamp; as will
    "filemtime" .


    Comment

    • Ken Robinson

      #3
      Re: Determining file creation date?


      Matt Traxinger wrote:[color=blue]
      > Is there a function that determines when a file was created? Like if[/color]
      I[color=blue]
      > wanted to return all the files created in the last month from a[/color]
      directory,[color=blue]
      > is there a way to do that? I've googled and googled but can't find[/color]
      what I'm[color=blue]
      > looking for. Thanks[/color]

      Instead of google, use http://www.php.net/

      It's the best PHP manual on the web.

      For the answer to your question, see


      Ken

      Comment

      • Alvaro G. Vicario

        #4
        Re: Determining file creation date?

        *** Matt Traxinger escribió/wrote (Wed, 6 Oct 2004 17:09:35 -0400):[color=blue]
        > 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[/color]

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

        Comment

        Working...