Hello,
Assuming you store your images in $imgRealPath, just glob() the directory and generate <img> tags to them:
foreach(glob("$imgRealPath/{*.jpg,*.png,*.gif}", GLOB_BRACE) as $fname) {
echo "<img src=\"" . $imgWebPath . "/" . baseName($fname) . "\" alt=\"$fname\" />";
}
where $imgWebpath is the web-accessible directory of the images folder.
__________________
onPHP5.com -
PHP5: Articles, News, Tutorials, Interviews, Software and more