linux - php用filectime函数获取文件的修改时间返回1970
环境:CentOS6.5
用php获取文件的修改时间,结果是1970,这是为什么?
代码:
1 2 3 4 5 6 7 | <code> $handler =opendir(dirname( __FILE__ ). "/uploadfiles/down" );
while ( $file =readdir( $handler )){
if ( $file == "." || $file == ".." ){
continue ;
}
echo $file . '-' . date ( 'Y-m-d H:i:s' , filectime ( $file )). '<br/>' ;
}</code>
|
结果:

而 . 和 .. 的时间却是正常的,不解
谢谢诸位
高洛峰2905 hari yang lalu814