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的 德拉戈什
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,filemtime或filctime没有将返回文件
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.为了解决这个问题,您可以尝试存储在数据库/文件时,文件供以后使用创建的时间。
Related posts:相关岗位:













































