1 file_put_contents($path,$content.PHP_EOL,FILE_APPEND); //追加写文件
file_put_contents($path,$content,FILE_APPEND);
原文:http://www.cnblogs.com/shenaishiren/p/7878105.html