Hello.
I am new in programming.
I would appreciate some help.
I have a folder in my site where I save all images from snagit.
But instead of seeing file names, I would like to see the images themselves with the last ones uploaded on top.
Could you modify the file?
Thanks.
Code:
<body>
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
$thelist .= '<LI>
<a href="'.$file.'">'.$file.'</a>';
}
}
closedir($handle);
}
?>
<P>List of files:</p>
<UL>
<P><?=$thelist?></p>
</UL>
</body>