Hi
I can't work out why this seems to be making the server hang, I guess ther'ee an infinate loop in there but I just can't see it?
If you take out the loop and just insert "./dir" in opendir() it's fine, weird.
$dir=array("./about","./general","./contact");
for ($i=0; $i<=sizeof($dirarray); $i++) {
$handle = opendir($dir);
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
print("<a href=\"contact/$file\">$file</a><br>\n");
}
}
closedir($handle);
print("<br>\n");
}
Cheers
Nick