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 Ажурирања путем РСС Феед | Е-маил Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Хоме / кодирање / ПХП / пхп: Како доћи Тим стварање ...

PHP: How to get creation time of file with PHP on Linux machines ПХП-: Како доћи време креирање фајла са ПХП на Линукс машинама

Posted on 01. Постед он 01.. Sep, 2009 by Dragos in Coding , PHP Сеп 2009 бы Драгош у кодирању, ПХП -

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo ПХП-5,3 5,4 6 логотип

Unfortunately it is not possible to get the creation time of a file on Linux machines. Нажалост, није могуће добити време креирања фајла на Линукс машинама. None of the functions fileatime , filemtime or filctime will return the file Ниједан од функција филеатиме, филемтиме филцтиме или ће се вратити датотеку
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. Напомена: Имајте на уму да у неким текстовима УНИКС цтиме датотеке је наведен као време стварања датотеке. This is wrong. Ово је погрешно. There is no creation time for Unix files in most Unix filesystems. (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. Да би се решио овај проблем, можете покушати да ускладиштите у бази података / датотеку време када је датотека креирана за каснију употребу.

Translate this post Преведи овај пост


Related posts: Повезани постови:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Уордпресс: Лако Ресетуј Ваш налог Лозинка користите МыСКЛ и ПХП

    blog comments powered by Disqus Блог коментари поуеред бы Дискус