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 Posodobitev prek RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Domov / Coding / PHP / PHP: Kako priti do ustvarjanja tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Kako ustvarjanje časa datoteke s PHP na računalnikih Linux

Posted on 01. Objavljeno dne 01. Sep, 2009 by Dragos in Coding , PHP September 2009, ki ga Dragos v 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. Na žalost ni mogoče dobiti oblikovanje čas datoteke na računalnikih Linux. None of the functions fileatime , filemtime or filctime will return the file Nobena od funkcij fileatime, filemtime ali filctime bo vrnil datoteko
creation time. ustvarjanje časa.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Opomba: Upoštevajte tudi, da je v nekaterih besedilih Unix je CTime za spis, naveden kot oblikovanje času datoteke. This is wrong. To je narobe. There is no creation time for Unix files in most Unix filesystems. (from php.net) Ni časa za ustvarjanje Unix datoteke v večini datotečne sisteme Unix. (Iz 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. Da bi rešili to vprašanje, lahko poizkusite shraniti v podatkovne baze / datoteke čas, ko je datoteka ustvarjena za poznejšo uporabo.

Translate this post Prevedi to post


Related posts: Podobni objav:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: lahek Ponastavi geslo za svoj račun z uporabo MySQL in PHP

    blog comments powered by Disqus blog comments powered by Disqus