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 Aktualisierungen per RSS | E-Mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Programmierung / PHP / PHP: Wie kommt man Schaffung tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Wie man die Schaffung Zeitpunkt der Datei mit PHP auf Linux-Maschinen zu erhalten

Posted on 01. Gesendet am 01. Sep, 2009 by Dragos in Coding , PHP September 2009 von 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. Leider ist es nicht möglich, die Zeit der Erstellung einer Datei auf Linux-Rechnern zu erhalten. None of the functions fileatime , filemtime or filctime will return the file Keine der Funktionen fileatime, filemtime oder filctime wird die Datei zurück
creation time. Erstellungszeit.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Hinweis: Beachten Sie auch, dass in einigen Unix-Texten ctime einer Datei wird als die Zeit der Erstellung der Datei bezeichnet. This is wrong. Das ist falsch. There is no creation time for Unix files in most Unix filesystems. (from php.net) Es gibt keine Schöpfung Zeit für Unix-Dateien in den meisten Unix-Dateisysteme. (Von 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. Um dieses Problem zu lösen, könnten Sie versuchen, in einer Datenbank speichern / file die Zeit, wenn eine Datei zur späteren Verwendung erstellt.

Translate this post Translate this post


Related posts: In Verbindung stehende Pfosten:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Leicht Reset "Mein Konto" Passwort mit MySQL und PHP

    blog comments powered by Disqus Blog-Kommentare powered by Disqus