Uděláš index v php a tam výpis souborů. Něco jako
<h3>Výpis souborů z adresáře:</h3>
<?php
$ces = getcwd();
$adr = array_pop(explode("/", $ces));
echo "<h2>";
print $adr;
echo "</h2>";
?>
</center>
<table width="700" align="center">
<tr>
<td valign="top" width="350">
<?php
$nas_sou="index.php";
$handle=opendir('/var/www/hry/');
$i=0;
$j=0;
while (false!==($file = readdir($handle)))
{
if ($file!="."&&$file!=".."&&!is_dir($file)&&$file!=$nas_sou)
{
$soubor[$i]="$file";
$velikost[$i]=round((filesize($file) / 1024/1024),3);
$zmena[$i]=date("H:i:s d.m.Y ",filemtime($file));
$i++;
}
if ($file != "." && is_dir($file))
{
$adresar[$j]="$file";
$j++;
}
}
closedir($handle);
function vypis($s,$v)
{
echo "<table>\n";
for($i=0;$i<count($s);$i++)
{
echo "<tr><td>";
echo '<a href="'.$s[$i].'">'.$s[$i].'</a>';
echo "</td><td>$v[$i]";
echo "</td><td>$z[$i]";
echo "</td></tr>\n";
}
echo "</table>\n";
}
echo "<table align=center width=650>";
echo "<tr>";
echo "<td width=300>";
echo "<b>Adresáře:</b><hr>\n";
echo "</td>";
echo "<td width=300 colspan=2>";
echo "<b>Soubory:</b><hr>\n";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td valign=top align=left>";
vypis($adresar,"","");
echo "</td>";
echo "<td valign=top align=left>";
vypis($soubor,$velikost);
?>
</td>
</tr>
</table>