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-post Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Avaleht / kodeerimise / PHP / PHP: Kuidas luua tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Kuidas loomise ajal faili PHP Linux masinatega

Posted on 01. Postitatud 01. Sep, 2009 by Dragos in Coding , PHP September, 2009 Dragos in kodeerimise, 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. Kahjuks ei ole võimalik saada loomise ajal faili Linux masinaid. None of the functions fileatime , filemtime or filctime will return the file Ükski funktsioone fileatime, filemtime või filctime tagastab faili
creation time. loomise aeg.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Märkus: Pange tähele, et mõned Unix-tekste ctime on faili nimetatakse seda loomise ajal toimiku. This is wrong. See on vale. There is no creation time for Unix files in most Unix filesystems. (from php.net) Puudub loomise ajal UNIX failide kõige Unixi failisüsteeme. (From 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. Et probleemi lahendada, siis võiks proovida salvestada andmebaasi / faili siis, kui fail on loodud kasutamiseks hiljem.

Translate this post Tõlgi see postitus


Related posts: Seonduvad postitused:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: hõlpsalt taastada oma konto parool kasutate MySQL ja PHP

    blog comments powered by Disqus blog comments powered by Disqus