suche.php
	
wenn ich nun das script mit suche.php?suche=Bla
aufrufe, sollte er doch das Verzeichniss Bla öffnen und darin suchen, oder?
das funzt aber nich, ich bekomme folgenden error
Warning: OpenDir: No such file or directory (errno 2) in /is/htdocs/27074/www.your-castle.org/de/link_db/database/index.php on line 7
Warning: Supplied argument is not a valid Directory resource in /is/htdocs/27074/www.your-castle.org/de/link_db/database/index.php on line 8
hoffe hier kann mir jemand helfen
					Code:
	
	<? $suche = "$keyword"; ?>
<?
$extension = "";
$i=0;
$handle=opendir ('$keyword'); 
while (false !== ($file = readdir ($handle))) {
	$expl = explode(".",$file);
	if ($expl[1] == $extension) {
		$i++; 
		$array[$i] = $file;
	}
}
closedir($handle); 
if ($i > 0) {
	sort($array);
	while (list ($key, $val) = each ($array)) {
		$expl = explode(".",$val);
    		print "<a href=\"index.php?keyword=$expl[0]\">$expl[0]</a><br>\n";
	}
} else {
	print "Sorry, die Datenbank ist leer.";
}
?>
wenn ich nun das script mit suche.php?suche=Bla
aufrufe, sollte er doch das Verzeichniss Bla öffnen und darin suchen, oder?
das funzt aber nich, ich bekomme folgenden error
Warning: OpenDir: No such file or directory (errno 2) in /is/htdocs/27074/www.your-castle.org/de/link_db/database/index.php on line 7
Warning: Supplied argument is not a valid Directory resource in /is/htdocs/27074/www.your-castle.org/de/link_db/database/index.php on line 8
hoffe hier kann mir jemand helfen
 
          
Comment