PHP: How to get creation time of file with PHP on Linux machines PHP: Kuidas loomise ajal faili PHP Linux masinatega
Posted on 01. Postitatud 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 Dragos in kodeerimise, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Kahjuks ei ole võimalik saada loomise ajal faili Linux masinaid. None of the functions fileatime , filemtime or filctime will return the file Ükski funktsioone fileatime, filemtime või filctime tagastab faili
creation time. loomise aeg.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Märkus: Pange tähele, et mõned Unix-tekste ctime on faili nimetatakse seda loomise ajal toimiku. This is wrong. See on vale. There is no creation time for Unix files in most Unix filesystems. (from php.net) Puudub loomise ajal UNIX failide kõige Unixi failisüsteeme. (From 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. Et probleemi lahendada, siis võiks proovida salvestada andmebaasi / faili siis, kui fail on loodud kasutamiseks hiljem.
Related posts: Seonduvad postitused:













































