PHP: How to get creation time of file with PHP on Linux machines PHP: Hoe krijg ik scheppen tijd van bestand met PHP op Linux-machines
Posted on 01. Geplaatst op 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 door Dragos in Coding, PHP
Unfortunately it is not possible to get the creation time of a file on Linux machines. Helaas is het niet mogelijk om de oprichting tijd van een bestand op Linux machines te krijgen. None of the functions fileatime , filemtime or filctime will return the file Geen van de functies fileatime, filemtime of filctime zal de terugkeer van de file
creation time. creatie.
Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Opmerking: Merk ook op dat in sommige teksten van de Unix ctime van een bestand wordt aangeduid als de oprichting tijd van het bestand. This is wrong. Dit is onjuist. There is no creation time for Unix files in most Unix filesystems. (from php.net) Er is geen schepping tijd voor Unix-bestanden in de meeste Unix-bestandssystemen. (Vanaf 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. Om dit probleem op te lossen, kan je proberen te slaan in een database / bestand de tijd wanneer een bestand wordt gemaakt voor later gebruik.
Related posts: Gerelateerde berichten:













































