PHP: How to get creation time of file with PHP on Linux machines PHP: Hur får man skapa tid för fil med PHP på Linux-maskiner
Posted on 01. Skrivet den 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 av Dragos i Coding, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Tyvärr är det inte möjligt att få skapa tid för en fil på Linux-maskiner. None of the functions fileatime , filemtime or filctime will return the file Ingen av de funktioner fileatime, filemtime eller filctime kommer tillbaka filen
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. Obs: Observera också att i vissa Unix texter ctime av en fil kallas för att skapelsen tid av filen. This is wrong. Detta är fel. There is no creation time for Unix files in most Unix filesystems. (from php.net) Det inte skapas tid för Unix-filer i de flesta Unix-filsystem. (Från 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. För att lösa problemet kan du prova att lagra i en databas / fil när en fil skapas för senare användning.
Related posts: Relaterade tjänster:













































