<?
$dir = opendir(".");
while($file = readdir($dir)) {
if(ereg (".html", $file)) {
echo ("<a href=\"$file\">$file</a><br>");
} else {
echo "";
}
}
?>
this is what i got so far
but if it ddd_hello.html i want it to be displayed as "ddd hello"
how cna i do this ?
thx