Jump to content

How do I display a folder with images?


pneudralics

Recommended Posts

this way

$dir="folder"; 
if ($dir_list = opendir($dir))
{
while(($filename = readdir($dir_list)) !== false)
{
echo "<img src=\"$dir/$filename\" height=\"50\" width=\"50\"/><a href=\"$dir/$filename\"><b>
$filename</b></a><br /><br />";
}
closedir($dir_list);
}
else
{
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.