Okay so I looked over your code, but I think you are making this entirely too hard and a little inefficient. I would use a multi-dimensional array instead of a pipe-delimited string. That way you save yourself the time to split the string up and such. This should work a littl faster.
PHP Code:
<?
$base_dir = "uploads/";
$dir = opendir($base_dir);
while ($file = readdir($dir)) {
if (($file != ".") && ($file != "..")) {
$files[] = array("fname" => $file,
"ftime" => date("m/d/Y G:i", filectime($base_dir.$file)),
"fsize" => filesize($base_dir.$file)
);
}
}
arsort($files);
foreach($files as $key => $file) {
echo "<b>", $files[$key]['fname'], "</b> - ", $files[$key]['ftime'], " - ", $files[$key]['fsize'], "<br>";
}
?>
Bookmarks