Simple, text-based PHP chat system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
294 B

header("X-Frame-Options: DENY");
header("Content-Security-Policy: frame-ancestors 'none'", false);
$chat = fopen("chat.txt", "a+") or die("Error upon opening file");
while(!feof($chat)) {
echo "<div class=\"message\">" . fgets($chat) ."</div>";