DzSoundNirvana
New member
all you do s drop in the folder you want and change "echo "<tr><td>$file</td></tr><tr><td><a href=\"$file\" target=\"_blank\"><img src=\"$file\" border=\"0\"> </a></td></tr>";" to what ever you want
<?
if ($handle = opendir('.')) {
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<tr><td>$file</td></tr><tr><td><a href=\"$file\" target=\"_blank\"><img src=\"$file\" border=\"0\"> </a></td></tr>";
}
}
echo "</table>";
closedir($handle);
}
?>
<?
if ($handle = opendir('.')) {
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<tr><td>$file</td></tr><tr><td><a href=\"$file\" target=\"_blank\"><img src=\"$file\" border=\"0\"> </a></td></tr>";
}
}
echo "</table>";
closedir($handle);
}
?>