文本型留言本
时间:2006-03-30 来源:freespray
写入:
$fp=fopen("test.txt","a+");
$main="大名".$name."留言".$word"";
$write=fwrite($fp,$main);
fclose($fp);
读取
$fp=fopen("test.txt","a+");
$read=fread($fp,filesize("text.txt"));
fclose($fp);
print $read;
$fp=fopen("test.txt","a+");
$main="大名".$name."留言".$word"";
$write=fwrite($fp,$main);
fclose($fp);
读取
$fp=fopen("test.txt","a+");
$read=fread($fp,filesize("text.txt"));
fclose($fp);
print $read;
相关阅读 更多 +