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 от Драгош в кодиране, 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