This is a translated page. The original can be found here: http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/
UPDATES VIA RSS | Email Atualizações Via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Codificação / PHP / PHP: Como obter a tim criação ...

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

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP logotipo 5,3 5,4 6

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.

Translate this post Traduzir este post


Related posts: Related posts:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: facilmente redefinir sua senha da conta usando MySQL e PHP

    blog comments powered by Disqus blog comentários powered by Disqus