PHP: How to get creation time of file with PHP on Linux machines PHP: Como obter a hora de criação de arquivo com PHP em computadores com Linux
Posted on 01. Postado em 01. Sep, 2009 by Dragos in Coding , PHP Setembro de 2009 por Dragos na Codificação, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Infelizmente, não é possível obter o tempo de criação de um arquivo em máquinas Linux. None of the functions fileatime , filemtime or filctime will return the file Nenhuma das funções fileatime, filemtime ou filctime irá retornar o arquivo
creation time. momento da criação.
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: Note também que em alguns textos Unix o ctime de um arquivo é referido como sendo o tempo de criação do arquivo. This is wrong. Isto está errado. There is no creation time for Unix files in most Unix filesystems. (from php.net) Não há tempo a criação de arquivos Unix, na maioria dos sistemas de arquivos 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 resolver esse problema, você pode tentar armazenar em um banco de dados / arquivo a tempo quando um arquivo é criado para uso posterior.
Related posts: Related posts:













































