<?php
if ($handle = opendir('/my/directory')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
Everything is good, you just to make a slight addition to your echo.
echo "<a href=\"$file\">$file</a><P>"
-Danny
"You are stuuuuuupid"
Dexter of Dexter's Labratory
Yeah, I watch Dexter, you got a problem with that! :-)
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com