File-dims-browser ..virker ikke?
Hey alle:Djeg har et lille problem med min lille filebrowser..
<?php asd
if (!isset($action)){$action = \"./\";}
// else { $action = \"./\".$action;}
$handle = opendir($action);
while (false !== ($file = readdir($handle))) {
if ($file != \".\") {
if (is_dir($file) == true){
print \"<a href=\".$php_self.\"?action=\".$action.\"\".$file.\"/ target=_self>\".$file.\"</a><br>\";
}
else {
if(file_exists($action)){
print \"<a href=http://www.rachid.dk/editor/top.php3?side=\".$action.\"\".$file.\" target=top>\".$file.\"</a><br>n\";
}
elseif(!file_exists($action)){
print \"<a href=http://www.rachid.dk/editor/top.php3?side=\".$action.\"\".$file.\"/ target=top>\".$file.\"</a><br>\";
}
}
}
}
closedir($handle);
?>
af forskellige grunde så vil den ikke gå med til at man først går 1 bibliotek tilbage..og derefter går ind i et andet.. ej heller vil den at man går 2 biblioteker frem.
nogen der kan hjælpe med at rette scriptet til?
