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 ACTUALITZACIONS VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Inici / codificació / PHP / PHP: Com aconseguir la creació de Tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Com obtenir un temps de creació de fitxers amb PHP en màquines Linux

Posted on 01. Publicat a 01. Sep, 2009 by Dragos in Coding , PHP Setembre de 2009, per Dragos a la codificació, 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. Malauradament no és possible obtenir el moment de la creació d'un arxiu en màquines Linux. None of the functions fileatime , filemtime or filctime will return the file Cap de les funcions fileatime, filemtime o filctime retornarà l'arxiu de
creation time. temps de creació.

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: Tingueu en compte també que en alguns textos de Unix, l'ctime d'un fitxer que s'anomena l'hora de creació de l'arxiu. This is wrong. Això és incorrecte. There is no creation time for Unix files in most Unix filesystems. (from php.net) No hi ha temps per a la creació d'arxius de Unix en la majoria de sistemes d'arxius 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. Per tal de resoldre aquest problema, pot intentar emmagatzemar en una base de dades / arxiu de l'època en què es crea un fitxer per al seu ús posterior.

Translate this post Demanar aquest missatge


Related posts: Llocs relacionats amb:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Fàcilment Restablir la contrasenya del compte Ús de MySQL i PHP

    blog comments powered by Disqus blog alimentat per Disqus