Hi again!
go following problem with this script.
the script works, but if i read a directory,
there are always some points like:
.
..
before the readed files!
how can you remove them?
Greets Absinthguru
<?
$dir_main = "rezepte/$kat";
$dir = @opendir("$dir_main");
while (($file = readdir($dir)) !== false) {
$file = ereg_replace(".php","",$file);
print("<a href=\"index.php?page=$dir_main/$file\">$file</a><br>");
}
closedir($dir);
?>