PHP: How to get creation time of file with PHP on Linux machines PHP: Miten saada luomisen aika tiedoston PHP Linux-koneiden
Posted on 01. Postitettu 01. Sep, 2009 by Dragos in Coding , PHP Syyskuu, 2009 Dragos vuonna Coding, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Valitettavasti se ei ole mahdollista saada luomisen aikaa tiedoston Linux-koneissa. None of the functions fileatime , filemtime or filctime will return the file Yksikään toimintojen fileatime, filemtime tai filctime palauttaa tiedosto
creation time. luomisen aikaa.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Huomaa: Huomaa myös, että joissakin Unix tekstit ctime tiedostosta on tarkoitettu olevan luomisen aika tiedoston. This is wrong. Tämä on väärin. There is no creation time for Unix files in most Unix filesystems. (from php.net) Ei ole luoda aikaa Unix-tiedostoja useimmissa Unix-tiedostojärjestelmiä. (Alkaen 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. Jotta tämän ongelman ratkaisemiseksi, voit yrittää tallentaa tietokantaan-tiedoston, kun tiedosto on luotu myöhempää käyttöä varten.
Related posts: Liittyvien virkojen:













































