This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post"> | |
<input name="text"> | |
<input type="submit"> | |
</form> | |
<?php | |
!empty($_POST["text"]) && file_put_contents("log.php", date("c>").htmlspecialchars($_POST["text"], ENT_QUOTES, "UTF-8")."\n", FILE_APPEND) && header("location: {$_SERVER['REQUEST_URI']}"); | |
echo @implode('<br>',array_reverse(file("log.php"))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> perl -E 'say "生" & "死"' | |
愛 | |
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111 | |
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011 | |
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011 |