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: Як отримати створення Тим ...

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 Вересень, 2009 Dragos в кодування, PHP

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP 5,3 5,4 6 логотип

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 більшість файлових систем 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. Для того, щоб вирішити цю проблему, можна спробувати зберігати в базі даних / файлів той час, коли створюється файл для подальшого використання.

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