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 Opdateringer via RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Hjem / Kodning / PHP / PHP: Sådan får du oprette tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Sådan får du oprette tid fil med PHP på Linux-maskiner

Posted on 01. Sendt den 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 af Dragos i Kodning, 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. Desværre er det ikke muligt at få oprettelsen tid af en fil på Linux-maskiner. None of the functions fileatime , filemtime or filctime will return the file Ingen af de funktioner fileatime, filemtime eller filctime vil returnere filen
creation time. skabelse tid.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Bemærk: Bemærk også, at i nogle UNIX tekster ctime af en fil er nævnt som værende oprettelsen tid af filen. This is wrong. Dette er forkert. There is no creation time for Unix files in most Unix filesystems. (from php.net) Der er ingen skabe tid til Unix-filer i de fleste UNIX-filsystemer. (Fra 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. For at løse dette problem, kan du forsøge at gemme i en database / fil det tidspunkt, hvor en fil, der oprettes til senere brug.

Translate this post Oversæt dette indlæg


Related posts: Relaterede stillinger:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: nemt nulstille din adgangskode Brug af MySQL og PHP

    blog comments powered by Disqus blog comments powered by Disqus