Posted by Jim Carlock on 01/02/06 04:24
"Jameson" <jameson_ray@comcast.net> wrote:
> Thanks for the fast response. What I'm trying to do is
> actually display the images, not list them. What I've
> got so far (sorry for not posting this earlier) is:
Use witkey's suggestion with a modification?
<?php
// An Example about listing Images.
$dir = ".";
$odir = opendir($dir);
while($file = readdir($odir)){
if(filetype($file) == "image/JPEG") {
$sAltText = '"Whatever the alt text is if so required."';
echo '<img src="' . $dir . $file . ' border="0" alt="' . $sAltText . '" /><br />' . "\n";
}
?>
Jim Carlock
Post replies to the newsgroup.
[Back to original message]
|