Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $msg = htmlspecialchars($_POST['msg']);
- $file = file('file.php');
- $file[39] = " ".PHP_EOL."array_push($r, "<font color=green>".$msg."
- </font>");";
- $fl = file_put_contents('file.php', $file);
- if (!$fl) {
- echo "Ошибка!";
- exit;
- }
Add Comment
Please, Sign In to add comment