$handle=opendir($poem_path);
while ($file = readdir($handle)) {
if ($file != "." && $file != "..") {
// print "hallo: ";
// print mb_detect_encoding($file);
// print " - ";
$file=$poem_path.mb_convert_encoding($file,"CP1252","UTF-8");
// print $file;
//$file=htmlentities($poem_path.$file, "ENT_SUBSTITUTE", "UTF-8");
print "
".urldecode(str_replace(".cool","",$file))."";
if (file_exists($file)){
print "
";
print "
[
stop this!]";
}
else{
print "file ";
print $file;
print " not found, sag ich mal.";
}
}
}
closedir($handle);
?>