1、用追加方式打开文件
$fpw = fopen($filename,"a");
fwrite($fpw, $contents);2、用读写方式打开文件
$fpw = fopen($filename,"r+");
fseek($fpw,filesize($filename)); //移动指针到文件尾
fwrite($fpw, $contents);
$fpw = fopen($filename,"a");
fwrite($fpw, $contents);2、用读写方式打开文件
$fpw = fopen($filename,"r+");
fseek($fpw,filesize($filename)); //移动指针到文件尾
fwrite($fpw, $contents);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货