Mi mostra una pagina tutta bianca...codice:<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" 1" width="100%" id="AutoNumber1"> <?php $d = dir("galleria/"); while (false !== ($entry = $d->read())) { if (is_dir($d->path."/".$entry)){ if($entry != "." && $entry != "..") { echo "<tr><td width=\"50%\"><p align=\"center\">$entry</td>"; if(false !== ($entry = $d->read())){ if (is_dir($d->path."/".$entry)){ if ($dh = opendir("galleria/" . $entry)) { $fileToShow = ""; while (($file = readdir($dh)) !== FALSE) { if($file != "." && $file != "..") $fileToShow = $file; } echo "<img src=\"galleria/$entry/$fileToShow\" width=\"50\" height=\"50\">"; echo "<td width=\"50%\"><p align=\"center\">$entry</td></tr>"; } closedir($dh); } } } else { echo "<td width=\"50%\"></td></tr>"; break; } } } $d->close(); ?> </table>

Rispondi quotando