hi, ich nehme mir die frecheit das problem nochma zu posten
search.php
ich kann ihn aber mit search.php?keyword=Internet nicht sagen das er das handlen soll, obwohl es vorhanden is.. warum nich? ( Link dazu: http://www.your-castle.org/de/link_d...yword=Internet )
search.php
Code:
<?
$i=0;
$handle=opendir ('$keyword');
while (false !== ($file = readdir ($handle))) {
if (is_dir($file)) {
if ($file != "." && $file != "..") {
$i++;
$array[$i] = $file;
}
}
}
closedir($handle);
if ($i > 0) {
sort($array);
while (list ($key, $val) = each ($array)) {
$handle=opendir($val);
$ff=0;
while (false !== ($file = readdir ($handle))) {
if (!is_dir("./$file")) {
$ff++;
}
}
print "<a href=\"$val/index.php\">$val</a> ($ff)<br>\n";
}
} else {
print "Sorry, die Datenbank ist leer.";
}
?>
Kommentar