unlink($file); if (file_exists($file)) { $_SESSION["fail"] .= $file . "<br />"; } else { $_SESSION["success"] .= $file . "<br />"; } } } } reset($folders); rmdir($item); if (file_exists($item)) { $_SESSION["fail"] .= $item . "<br />"; } else { $_SESSION["success"] .= $item . "<br />"; } } else { unlink($item); if (file_exists($item)) { $_SESSION["fail"] .= $item . "<br />"; } else { $_SESSION["success"] .= $item . "<br />"; } } $_SESSION['path'] .= $base == true && file_exists($item) ? $item . "<br />" : ""; $_SESSION['chmod'] .= $base == true && file_exists($item) ? "chmod -R 0777 " . $item . ";<br />" : ""; } } } Remove::main();