PHP: How to get creation time of file with PHP on Linux machines PHP: การได้เวลาสร้างไฟล์ด้วย PHP ในเครื่อง Linux
Posted on 01. โพสต์ใน 01. Sep, 2009 by Dragos in Coding , PHP ก.ย., 2,009 โดย Dragos ใน การเข้ารหัส, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. แต่น่าเสียดายที่จะไม่สามารถรับเวลาการสร้างไฟล์บนเครื่อง Linux. None of the functions fileatime , filemtime or filctime will return the file ไม่มีหน้าที่ fileatime, filemtime หรือ filctime จะกลับไฟล์
creation time. เวลาสร้าง.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. หมายเหตุ: หมายเหตุอีกว่าในบางข้อความ Unix ctime ของไฟล์จะเรียกว่าเป็นเวลาการสร้างแฟ้ม. This is wrong. นี้เป็นธรรม. There is no creation time for Unix files in most Unix filesystems. (from php.net) มีเวลาสร้างไม่สำหรับ Unix ไฟล์ในที่สุด filesystems Unix. (จาก php.net มี)
In order to solve this issue, you could try to store in a database/file the time when a file is created for later use. เพื่อแก้ปัญหานี้ให้คุณสามารถพยายามที่จะจัดเก็บในฐานข้อมูล / file เวลาที่ไฟล์ถูกสร้างขึ้นเพื่อใช้ในภายหลัง.
Related posts: บทความที่เกี่ยวข้อง:













































