Maybe I didnt see something, but I am not able to store the modification date of a file in an array, is that possible, all other elements of the array work, only the second one is empty.
Any help ?
function readdirectory() {
global $imagedir,$numfiles,$full_filename,$files,$entry;
$imagedir = "./images";
$numfiles=0;
// Variablen löschen
//unset($full_filename);
// unset($files);
$dir = dir("$imagedir");
while($entry = $dir->read()) {
if($entry != "." && $entry != "..") {
$files[$numfiles]=array($entry,filemtime($entry),($imagedir."/".$entry));
$numfiles++;
}
}
$dir->close();
}
while (list($key, $value) = each($files)) {
$href = '<li><a href="javascript:popUp(\'display.php?img=%s\', %d, %d, 100, 100)">%s</a><br>';
printf("<tr><td>");
printf ($href, $value[2], $size[0]+20,$size[1]+20, $value[0]);
printf("</td>");
printf("<td>%s</td>",$value[1]);
printf("<td><a href=$PHP_SELF?status=delete&id=$i>Delete</a></td>");
printf("</tr>");
}