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 ACTUALIZACIONES VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Inicio / codificación / PHP / PHP: ¿Cómo conseguir la creación de Tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Cómo obtener un tiempo de creación de archivos con PHP en máquinas Linux

Posted on 01. Publicado en 01. Sep, 2009 by Dragos in Coding , PHP Septiembre de 2009, por Dragos en la codificación, PHP

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP 5.3 5.4 6 logo

Unfortunately it is not possible to get the creation time of a file on Linux machines. Desafortunadamente no es posible obtener el momento de la creación de un archivo en máquinas Linux. None of the functions fileatime , filemtime or filctime will return the file Ninguna de las funciones fileatime, filemtime o filctime devolverá el archivo de
creation time. tiempo de 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: Tenga en cuenta también que en algunos textos de Unix, el ctime de un archivo que se denomina la hora de creación del archivo. This is wrong. Esto es incorrecto. There is no creation time for Unix files in most Unix filesystems. (from php.net) No hay tiempo para la creación de archivos de Unix en la mayoría de sistemas de archivos de Unix. (De 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. Con el fin de resolver este problema, puede intentar almacenar en una base de datos / archivo de la época en que se crea un archivo para su uso posterior.

Translate this post Traducir este mensaje


Related posts: Puestos relacionados con:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Fácilmente Restablecer la contraseña de la cuenta Uso de MySQL y PHP

    blog comments powered by Disqus blog alimentado por Disqus