File tidak memiliki izin tulis.";
} else {
$content = $_POST['content'] ?? "";
$result = file_put_contents($file, $content);
if ($result !== false) {
clearstatcache();
$message = "
Berhasil disimpan pada "
. date("Y-m-d H:i:s")
. "
";
} else {
$message = "Gagal menyimpan file.
";
}
}
}
$content = htmlspecialchars(file_get_contents($file));
?>
Index.php Editor
Editor index.php
File :
Ukuran :
Bytes