I have a script I got from codewalkers.com and in there I have the last update date for my files
$fTime = filemtime($file);
if ($fTime != false)
{
$today = getdate($fTime);
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
$fDate = "$month $mday, $year";
}
else
{
$fDate = " ";
}
The "only" problem I have encountered with this is if the files are written by php the datestamp is readable (regardless of the extension) but if uploaded from they aren't.