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 Päivitykset RSS | Sähköposti Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Etusivu / koodaus / PHP / PHP: Miten saada luomiseen tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Miten saada luomisen aika tiedoston PHP Linux-koneiden

Posted on 01. Postitettu 01. Sep, 2009 by Dragos in Coding , PHP Syyskuu, 2009 Dragos vuonna 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. Valitettavasti se ei ole mahdollista saada luomisen aikaa tiedoston Linux-koneissa. None of the functions fileatime , filemtime or filctime will return the file Yksikään toimintojen fileatime, filemtime tai filctime palauttaa tiedosto
creation time. luomisen aikaa.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Huomaa: Huomaa myös, että joissakin Unix tekstit ctime tiedostosta on tarkoitettu olevan luomisen aika tiedoston. This is wrong. Tämä on väärin. There is no creation time for Unix files in most Unix filesystems. (from php.net) Ei ole luoda aikaa Unix-tiedostoja useimmissa Unix-tiedostojärjestelmiä. (Alkaen 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. Jotta tämän ongelman ratkaisemiseksi, voit yrittää tallentaa tietokantaan-tiedoston, kun tiedosto on luotu myöhempää käyttöä varten.

Translate this post Käännä tämä viesti


Related posts: Liittyvien virkojen:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP WordPress: helposti palauttaa tilisi salasanan MySQL ja PHP

    blog comments powered by Disqus blogin kommentit powered by Disqus