PHP: How to get creation time of file with PHP on Linux machines PHP: Jak získat čas vytvoření souboru s PHP na strojích Linux
Posted on 01. Publikováno dne 01. Sep, 2009 by Dragos in Coding , PHP Září 2009 od Dragos v Kódování, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Bohužel není možné získat čas vytvoření souboru na strojích Linux. None of the functions fileatime , filemtime or filctime will return the file Žádná z funkcí fileatime, filemtime nebo filctime vrátí soubor
creation time. Vytvoření čas.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Poznámka: Všimněte si také, že v některých textech Unix je ctime souboru jen jako čas vytvoření souboru. This is wrong. To je špatně. There is no creation time for Unix files in most Unix filesystems. (from php.net) Neexistuje žádný čas pro vytváření souborů ve většině unixových souborových systémů Unix. (Z 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. Za účelem vyřešení této otázky, můžete zkusit uložit do databáze / souboru v době, kdy je soubor vytvořený pro pozdější použití.
Related posts: Související příspěvky:













































