Home » » filectime

filectime

Written By 1 on Sunday, September 30, 2012 | 7:05 PM

int filectime ( string $filename )

Gets inode change time of file

Gets the inode change time of a file.


<?php

// outputs e.g.  somefile.txt was last changed: December 29 2002 22:16:23.

$filename 'somefile.txt';
if (
file_exists($filename)) {
    echo 
"$filename was last changed: " date("F d Y H:i:s."filectime($filename));
}

?>


77 PHP视频教程filemtime filectime fileatime date default timezone set touch

0 Comment:

Post a Comment