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 CẬP NHẬT VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Trang chủ / Coding / PHP / PHP: Làm thế nào để có được tim sáng tạo ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Làm thế nào để có được thời gian tạo ra các tập tin với PHP trên máy Linux

Posted on 01. Được đăng trên 01. Sep, 2009 by Dragos in Coding , PHP Tháng Chín, 2009 của Dragos tại Coding, 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. Đáng tiếc là nó không phải là có thể làm cho thời gian sáng tạo của một tập tin trên máy Linux. None of the functions fileatime , filemtime or filctime will return the file Không có chức năng fileatime, filemtime hoặc filctime sẽ trở lại tập tin
creation time. tạo thời gian.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Lưu ý: Lưu ý thêm rằng trong một số văn bản Unix của ctime của một tập tin được gọi là đang trong thời gian sáng tạo của tập tin. This is wrong. Điều này là sai. There is no creation time for Unix files in most Unix filesystems. (from php.net) Không có thời gian tạo cho UNIX ảnh trong hầu hết các hệ thống tập tin UNIX. (Từ 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. Để giải quyết vấn đề này, bạn có thể thử để lưu trữ trong cơ sở dữ liệu / file thời gian khi một tập tin được tạo ra để sử dụng sau này.

Translate this post Dịch bài đăng này


Related posts: Liên quan đến bài viết:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Dễ dàng Đặt lại mật khẩu tài khoản của bạn Sử dụng MySQL và PHP

    blog comments powered by Disqus blog ý kiến được hỗ trợ bởi are On