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 | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Coding / PHP / PHP: Paano upang makakuha ng paglikha ng tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Paano upang makakuha ng paglikha ng oras ng file na may PHP sa Linux machine

Posted on 01. Posted on 01. Sep, 2009 by Dragos in Coding , PHP Septiyembre, 2009 sa pamamagitan ng Dragos sa 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. Sa kasamaang palad ito ay hindi posible upang makuha ang oras sa paggawa ng isang file sa Linux machine. None of the functions fileatime , filemtime or filctime will return the file Wala sa mga function fileatime, filemtime o filctime ay babalik ang file
creation time. sa paglikha ng oras.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Paalala: Tandaan din na sa ilang mga teksto ng Unix ang ctime ng isang file ay tinutukoy bilang ang pagbuo ng oras ng file. This is wrong. Ito ay mali. There is no creation time for Unix files in most Unix filesystems. (from php.net) Walang paglikha ng oras para sa mga Unix file sa pinaka-filesystems Unix. (Mula sa 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. Upang malutas ang isyu na ito, maaari mong subukan na tindahan sa isang database / file ang oras kapag ang isang file ay nilikha para sa mamaya gamitin.

Translate this post Isalin ang post na ito


Related posts: Related posts:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Madaling I-reset ang iyong Account Password Paggamit ng MySQL at PHP

    blog comments powered by Disqus blog comments powered by Disqus