PHP: How to get creation time of file with PHP on Linux machines PHP: Kif tikseb ħin ħolqien tal-fajl ma PHP fuq magni Linux
Posted on 01. Posted on 01. Sep, 2009 by Dragos in Coding , PHP SEP, 2009 mill Dragos fl-Kodifika, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Sfortunatament ma jkunx possibbli li tikseb il-ħin ħolqien ta 'fajl fuq il-magni Linux. None of the functions fileatime , filemtime or filctime will return the file Xejn tal-funzjonijiet, filemtime fileatime jew filctime ser jirritorna l-fajl
creation time. ħolqien ta 'żmien.
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: Innota wkoll li f'xi testi Unix l-ctime ta 'fajl huwa msemmi bħala l-ħin ħolqien tal-fajl. This is wrong. Dan huwa ħażin. There is no creation time for Unix files in most Unix filesystems. (from php.net) M'hemmx ħin għall-ħolqien Unix fajls fil-filesystems Unix aktar. (Minn 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. Sabiex issolvi din il-kwistjoni, inti tista 'tipprova li jaħżnu f'database / fajl-żmien meta l-fajl huwa maħluq għal użu aktar tard.
Related posts: Related postijiet:













































