I am able to list the images that I have saved on an uploads folder on my server but I am not sure what I am doing wrong when it comes to posting the images up. I can list the names of the files but I cannot get the images to show up.
code:
<?php
if ($handle = opendir('/home/kevin/html/uploads')) {
echo "Directory handle: $handle
";
echo "Entries:"."<br>";
while (false !== ($entry = readdir($handle))) {
//echo "$entry"."<br>";
echo "<img src = "$entry" alt = " ">"."<br>"
}
closedir($handle);
}
?>