This is a translated page. The original can be found here: http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/
UPDATES VIA RSS | Email การปรับปรุงผ่านทาง RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… บ้าน / รหัส / PHP / PHP: วิธีการรับ Tim สร้าง ...

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

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP 5.3 5.4 6 logo

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 เวลาที่ไฟล์ถูกสร้างขึ้นเพื่อใช้ในภายหลัง.

Translate this post แปลบทความนี้


Related posts: บทความที่เกี่ยวข้อง:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: สะดวกรีเซ็ตรหัสผ่านบัญชีของคุณโดยใช้ MySQL และ PHP

    blog comments powered by Disqus บล็อกความคิดเห็นขับเคลื่อนโดย Disqus