<?php$str = "要加入的内容";
$file = fopen("./log.log", "a+"); //创建文件或打开文件fwrite($file, $str); //写入
fclose($file); //关闭文件?>