View Single Post
Old 12-24-2012, 01:01 PM   PM User | #4
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 166
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
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!
sorlaker is offline   Reply With Quote