$file = 'data.txt';
$data = stat($file);
$accessed = $data['atime'];
$modified = $data['mtime'];
$created = $data['ctime'];
echo "file $file was...
\n"
. 'last accessed ' . date('l d F Y, \a\t H:i:s', $accessed) . ',
\n'
. 'last modified ' . date('l d F Y, \a\t H:i:s', $modified) . ',
\n'
. 'and created ' . date('l d F Y, \a\t H:i:s', $created)
. '.';
?>