PHP: How to get creation time of file with PHP on Linux machines PHP: Como obter a hora de creación de ficheiro con PHP en computadores con Linux
Posted on 01. Posta en 01. Sep, 2009 by Dragos in Coding , PHP Setembro de 2009 por Dragos na Codificación, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Desafortunadamente, non é posible obter o tempo de crear un ficheiro en máquinas Linux. None of the functions fileatime , filemtime or filctime will return the file Ningunha das funcións fileatime, filemtime ou filctime pode voltar o arquivo
creation time. momento da creación.
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: Teña en conta tamén que nalgúns textos Unix o ctime dun arquivo se refire como o tempo de creación do ficheiro. This is wrong. Isto está mal. There is no creation time for Unix files in most Unix filesystems. (from php.net) Non hai tempo a creación de arquivos Unix, na maioría dos sistemas de ficheiros Unix. (Do 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. Para solucionar este problema, podes probar a gardar nunha base de datos / arquivo a tempo cando un ficheiro é creado para uso posterior.
Related posts: Related posts:













































