How to display the image from a specified directory? like i want to display all the png images from a directory, in my case my directory is media/images/iconized.
I t
You can display all image from a folder using simple php script. Suppose folder name “images” and put some image in this folder and then use any text editor and paste this code and run this script. This is php code
"; // show only image name if you want to show full path then use this code // echo $image."
";
echo '
'."
";
} else {
continue;
}
}
?>
if you do not check image type then use this code
"; // show only image name if you want to show full path then use this code // echo $image."
";
echo '
' . "
";
}
?>