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威盛最新的RSS | 电子邮件 Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP: How to get creation tim… 首页 / 编码 / PHP的 / PHP:如何获得创建添...

PHP: How to get creation time of file with PHP on Linux machines PHP:如何获得Linux的机器用PHP创建文件时间

Posted on 01.发布01。 Sep, 2009 by Dragos in Coding , PHP 2008年9月,2009年在编码 ,PHP的 德拉戈什

PHP 5.3 5.4 6 logo

PHP 5.3 5.4 6 logo PHP的5.3 5.4 6标识

Unfortunately it is not possible to get the creation time of a file on Linux machines.遗憾的是,不可能得到一个关于Linux机器文件创建时间。 None of the functions fileatime , filemtime or filctime will return the file职能fileatime,filemtimefilctime没有将返回文件
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. :还要注意,在一些Unix文本文件的的ctime被称为是该文件的创建时间。 This is wrong.这是错误的。 There is no creation time for Unix files in most Unix filesystems. (from php.net)没有Unix的文件,在大多数的Unix文件系统。(从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 WordPress的:轻松重置您的帐户密码使用MySQL和PHP

    blog comments powered by Disqus 博客评论 Disqus