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













































