PHP: How to get creation time of file with PHP on Linux machines PHP: Kā nokļūt creation time of failu ar PHP uz Linux mašīnām
Posted on 01. Posted on 01. Sep, 2009 by Dragos in Coding , PHP Sep, 2009 by Dragos in kodēšanas, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Diemžēl tas nav iespējams iegūt izveidošanas laiks no lietas uz Linux mašīnām. None of the functions fileatime , filemtime or filctime will return the file Neviena no funkcijām fileatime, filemtime vai filctime atgriezīsies failu
creation time. creation time.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Piezīme: Ievērojiet arī, ka dažās Unix tekstus ctime par failu sauc par creation time of file. This is wrong. Tas ir nepareizi. There is no creation time for Unix files in most Unix filesystems. (from php.net) Nav izveidošanas laiks Unix failu visvairāk Unix failu sistēmas. (No 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. Lai atrisinātu šo problēmu, varētu mēģināt uzglabāt datu bāzē / failu, kad fails tiek izveidots vēlākai izmantošanai.
Related posts: Related posts:













































