OK227の意思は引き継いだ

<?php
//NullpoBBS bbd = new NullpoBBS();
define("BBSDAT","bbs.dat");
if(!empty($_POST["hatugen"])){
$Data = @file_get_contents(BBSDAT);
$f = fopen(BBSDAT, "w");
$s = substr("<dt>".date("Y/m/d H:i:s")."<dd>".nl2br(htmlspecialchars($_POST["hatugen"]))."<br><br>".$Data,0,20000);
fwrite($f,$s);
fclose($f);
}
echo '<form method="post"><textarea rows="3" cols="39" name="hatugen"></textarea><input type="submit"></form><hr><dl>';
echo @file_get_contents(BBSDAT)."</dl>";
?>