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 Aktualizáciou cez RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… Home / Kódovanie / PHP / PHP: Ako sa dostať na vytváranie tim ...

PHP: How to get creation time of file with PHP on Linux machines PHP: Ako získať čas vytvorenia súboru s PHP na strojoch Linux

Posted on 01. Publikované dňa 01. Sep, 2009 by Dragos in Coding , PHP September 2009 od Dragos v Kódovanie, 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. Bohužiaľ nie je možné získať čas vytvorenia súboru na strojoch Linux. None of the functions fileatime , filemtime or filctime will return the file Žiadna z funkcií fileatime, filemtime alebo filctime vráti súbor
creation time. Vytvorenie čas.

Note : Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. Poznámka: Všimnite si tiež, že v niektorých textoch Unix je ctíme súboru len ako čas vytvorenia súboru. This is wrong. To je zle. There is no creation time for Unix files in most Unix filesystems. (from php.net) Neexistuje žiadny čas pre vytváranie súborov vo väčšine unixových súborových systémov Unix. (Z 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. Za účelom vyriešenia tejto otázky, môžete skúsiť uložiť do databázy / súboru v čase, keď je súbor vytvorený pre neskoršie použitie.

Translate this post Translate this post


Related posts: Súvisiace príspevky:

  1. Wordpress: Easily Reset Your Account Password Using MySQL and PHP Wordpress: Ľahko Obnoviť heslo k vášmu účtu pomocou PHP a MySQL

    blog comments powered by Disqus blog pripomienky powered by Disqus