PHP: How to get creation time of file with PHP on Linux machines PHP: Kako doći vrijeme stvaranja datoteke sa PHP na Linux strojevima
Posted on 01. Poslano na 01. Sep, 2009 by Dragos in Coding , PHP Sep, 2009 by Dragos u kodiranju, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Nažalost nije moguće da se vrijeme stvaranja datoteke na Linux strojevima. None of the functions fileatime , filemtime or filctime will return the file Nitko od funkcija fileatime, filemtime filctime ili će se vratiti datoteke
creation time. stvaranje vremena.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Napomena: Imajte na umu da u nekim Unix tekstova CTime datoteke je naziva se vrijeme stvaranja datoteke. This is wrong. To je pogrešno. There is no creation time for Unix files in most Unix filesystems. (from php.net) Nema vremena za stvaranje Unix datoteke u većini Unix datotečni sustavi. (Iz 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. Da bi se riješio ovaj problem, možete pokušati pohraniti u bazu podataka / datoteka vrijeme kada se stvara datoteku za kasniju upotrebu.
Related posts: Related posts:













































