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
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.
Related posts: Llocs relacionats amb:













































