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 Actualizacións Via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Codificación / PHP / PHP: Como obter a Tim creación ...

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

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. 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.

Translate this post Traducir esta post


Related posts: Related posts:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: facilmente axustar o teu contrasinal da conta utilizando MySQL e PHP

    blog comments powered by Disqus blog comments powered by Disqus