This is a translated page. The original can be found here: http://iwebdevel.com/2009/09/01/php-how-to-get-creation-time-of-file-with-php-on-linux-machines-filemtime-fileatime-filectime/
UPDATES VIA RSS | Email UPDATES VIA RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Coding / PHP / PHP: Hoe krijg ik schepping mak ...

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

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP 5,3 5,4 6 logo

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.

Translate this post Translate this post


Related posts: Gerelateerde berichten:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Gemakkelijk Reset Uw account wachtwoord in met MySQL en PHP

    blog comments powered by Disqus blog comments powered by Disqus