php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11024 fileatime do not return date of file but date of system
Submitted: 2001-05-22 13:16 UTC Modified: 2001-05-22 22:44 UTC
From: lan at v-r dot be Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.5 OS: AIX 4.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lan at v-r dot be
New email:
PHP Version: OS:

 

 [2001-05-22 13:16 UTC] lan at v-r dot be
I have a strange thing

there is my code :

print "[".date("d/m/Y",
        fileatime("/usr/log/010521101953.82"))."-".
          date("H:i:s",
        filectime("/usr/log/010521101953.82"))."]".
      "010521101953.82";  

Result :

[22/05/2001-10:20:09] 010521101953.82  

And when I run ls -l /usr/log/010521101953.82, I see

-rw-rw-rw-   1 usr  staff       1806 May 21 10:20 /usr/log/010521101953.82

The time is good, but not the date.






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 22:44 UTC] sniper@php.net
Use filemtime() and only that.
(RTFM)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 02:01:28 2025 UTC