总共分三个部分:gorilla_main.php,gorilla.php,gorilla2.php
 
 gorilla_main.php
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>


<frameset rows="60%,*" border="1">
<frame name="top" src="gorilla2.php" bordercolor="#000000">
<frame name="botton" src="gorilla.php">
</frameset>
<body>
</body>
</html>

 gorilla.php
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<table>
<tr align="left" bgcolor="#00FF99">
<td height="20">
<?
$talk_back_ok="E:\EasyPHP1-8\www\msg.txt";
$webmaster_name="zkl";
$pass="zkl";
$help_lenght=20;
$max_single_msg_lenght=100000;
$max_file_size=$help_lenght*$max_single_msg_lenght;
?>
</td>
</tr>
<tr>
<td>

</td>
</tr>
</table>
<table>
<tr>
<td align="left">
<table>
<tr>
<td>
<?
@$person=str_replace("\n","",$_POST['person']);
$person=str_replace("<","",$person);
$person=str_replace(">","",$person);
$person=stripslashes($person);
?>
<table>
<tr>
<form action="gorilla.php" method="post">
<td>
呢称:<input type="text" name="person" value="<? echo $person;?>" size="10">
内容:<input type="text" name="message">
<input type="submit" value="发言">
</td>
</form>
</tr>
<?
$file_size=filesize($talk_back_ok);
if($file_size>$max_file_size)
{
  $lines=file($talk_back_ok);
  $a=count($lines);
  $u=$a-$help_lenght;
  for($i=$a;$i>=$u;$i--)
  $msg_old=$lines[$i].$msg_old;
  $deleted=unlink($talk_back_ok);
  $fp=fopen($talk_back,"a+");
  $fw=fwrite($fp,$msg_old);
  fclose($fp);
}
@$msg=str_replace("\n","",$_POST['message']);
$msg=str_replace("<","",$msg);
$msg=str_replace(">","",$msg);
$msg=stripslashes($msg);
if($person==$pass)
{
  $sign="<img src=\"$webmaster\" $webmaster_name>";
}
else
{
  $sign=$person;
}
if($msg!=""&&$person!="")
{
  $time=gmdate("h:i");
  $fp=fopen($talk_back_ok,"a+");
  $fw=fwrite($fp,"\n<tr><td>$sign at $time said:$msg</td></tr>");
  fclose($fp);
}
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>


 gorilla2.php
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<meta http-equiv="refresh" content="5;url=gorilla2.php" />
<body>
<table width="100%">
<tr>
<td align="center">
<img src="banzhu.jpg">
</td>
</tr>
<tr>
<td>
<?
$talk_back_ok="E:\EasyPHP1-8\www\msg.txt";
$help_lenght=15;
$max_single_msg_lenght=100000;
$max_file_size=$help_lenght*$max_single_msg_lenght;
$lines=file($talk_back_ok);
$a=count($lines);
$u=$a-$help_lenght;
for($i=$a;$i>=$u;$i--)
  echo @$lines[$i];
?>
</td>
</tr>
</table>
</body>
</html>