One thing ur doing wrong is that the $value2 has the "filectime('./content/uploaded' . $file);" content.
U should do something like this :
PHP Code:
$handle=opendir("./content/uploaded/");
$aFiles = array();
{
while (($file = readdir($handle))!==false)
{
$aFiles[$file] = filectime('./content/uploaded/' . $file);
}
asort($aFiles);
foreach($aFiles as $key => $value){
echo( $key . " - " . date("F d Y .", $value). " <img src=./content/uploaded/" . $key . "</a>");
}
}
}
closedir($handle);
I didn't test it yet thou. Hope it works!