Hi Leude warum bekomme ich die Fehlermeldung:
Hier mein Code:
Warning: readdir(): supplied argument is not a valid Directory resource in C:\apachefriends\xampp\htdocs\file2\php\download.php on line 16
Warning: closedir(): supplied argument is not a valid Directory resource in C:\apachefriends\xampp\htdocs\file2\php\download.php on line 26
Hier mein Code:
PHP:
<?php
$a="upload/".$_REQUEST['checkout'];
if ($_REQUEST['dl_pls']) {
while ($info=readdir($a)) {
if (($info != "index.php") AND ($info != ".") AND ($info != "..") AND ($info != "Thumbs.db")) {
$link=md5($info);
if ($link==$_REQUEST['dl_pls']) { header("location: ".$dir."/".$info); }
}
}
closedir($dir);
}
while ($info=readdir($a)) {
if (($info != "index.php") AND ($info != ".") AND ($info != "..") AND ($info != "Thumbs.db")) {
$link=md5($info);
$name=$info;
$size=FileSizeExt($dir."/".$info,"B");
eval ("\$table_index.= \"".tmp("filme_row.htm")."\";");
}
}
closedir($dir);
?>