PHP: How to get creation time of file with PHP on Linux machines PHP: Come ottenere il tempo di creazione del file con PHP su macchine Linux
Posted on 01. Posted on 01. Sep, 2009 by Dragos in Coding , PHP Settembre, 2009 da Dragos in Coding, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Purtroppo non è possibile ottenere il tempo di creazione di un file su macchine Linux. None of the functions fileatime , filemtime or filctime will return the file Nessuna delle funzioni fileatime, filemtime o filctime restituirà il file
creation time. la creazione di tempo.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Nota: Si noti inoltre che in alcuni testi Unix il ctime di un file è denominato l'ora di creazione del file. This is wrong. Questo è sbagliato. There is no creation time for Unix files in most Unix filesystems. (from php.net) Non c'è tempo per la creazione di file Unix nella maggior parte dei filesystem Unix. (Da 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. Al fine di risolvere questo problema, si potrebbe tentare di memorizzare in un database / file nel momento in cui viene creato un file per un utilizzo successivo.
Related posts: Related posts:













































