someone gave me this code
PHP Code:
<?php
//Open images directory
$dir = @ dir("/images/icons/");
//List files in images directory
while (($file = $dir->read()) !== false)
{
$imagelist[$i] = array('filename' => $file , 'lastModified ' => filemtime('images/icons/'.$file));
$i++;
}
print_r($imagelist);
$dir->close();
?>
But it doesn't really seem to work. And i dont really understand it
P.S The upload has nothing to do with a database
