", " ", $person); $person = stripslashes ($person); ?>
Nick:


Message:


$max_file_size) { $lines = file($chat_file_ok); $a = count($lines); $u = $a - $chat_lenght; for($i = $a; $i >= $u ;$i--){ $msg_old = $lines[$i] . $msg_old; } $deleted = unlink($chat_file_ok); $fp = fopen($chat_file_ok, "a+"); $fw = fwrite($fp, $msg_old); fclose($fp); } $msg = str_replace ("\n"," ", $message); $msg = str_replace ("\n"," ", $message); $msg = str_replace ("<", " ", $msg); $msg = str_replace (">", " ", $msg); $msg = stripslashes ($msg); if ($msg != ""){ $fp = fopen($chat_file_ok, "a+"); $fw = fwrite($fp, "\n$person : $msg
"); fclose($fp); } $lines = file($chat_file_ok); $a = count($lines); $u = $a - $chat_lenght; for($i = $a; $i >= $u ;$i--){ echo $lines[$i] . "
"; } ?>