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 Uppdateringar via RSS | E-post Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Hem / Kodning / PHP / PHP: Hur får man skapa Tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Hur får man skapa tid för fil med PHP på Linux-maskiner

Posted on 01. Skrivet den 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 av Dragos i 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. Tyvärr är det inte möjligt att få skapa tid för en fil på Linux-maskiner. None of the functions fileatime , filemtime or filctime will return the file Ingen av de funktioner fileatime, filemtime eller filctime kommer tillbaka filen
creation time. creation time.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Obs: Observera också att i vissa Unix texter ctime av en fil kallas för att skapelsen tid av filen. This is wrong. Detta är fel. There is no creation time for Unix files in most Unix filesystems. (from php.net) Det inte skapas tid för Unix-filer i de flesta Unix-filsystem. (Från 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. För att lösa problemet kan du prova att lagra i en databas / fil när en fil skapas för senare användning.

Translate this post Översätta det här inlägget


Related posts: Relaterade tjänster:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: enkelt återställa lösenordet för ditt konto med MySQL och PHP

    blog comments powered by Disqus blogg kommentarer drivs av Disqus