I want people to be able to type www.offthewoodwork.com/digitalpics/ without being told it's forbidden, cus it hasn't got an index.html, I want them just to able to view a list of files. I've done it before but I forgot

1:Pred_FNM <ER>> guys, yellow + green is really shitty for forumcolours :p 1:lnx> what's wrong with that combination 1:lnx> I wear yellow-green clothes :( 1:Pred_FNM <ER>> i dont mean in clothes, in forums.. 1:lnx> kk 1:lnx> buy a black-white computer monitor if you don't like the colors foo
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file <br>\n";
}
}
closedir($handle);
}
?>
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "<a href='".htmlspecialchars($file)."'>$file</a><br>\n";
}
}
closedir($handle);
}
?>
Comment