attempt
(attempt)
注册会员

初级会员
UID 62960
精华
0
积分 139
帖子 115
金钱 139 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2005-1-6
状态 离线
|
[广告]: q
m
写文件时的换行问题,在线等待 ...
$mktxt = "line 1";
$mktxt .= "line 2";
$mktxt .= "line 3";
$des = "/web/test.txt";
$handle = fopen ($des,"w");
if (!fwrite ($handle,$mkhtml)){
echo "<script>alert('发布失败!');history.go(-1);</script>";
}
把 $mktxt 写入到test.txt
怎么才能使生成的test.txt文件一共为三行呢?
test.txt :
line 1
line 2
line 3
|
|