新闻管理程序疑问
在新闻管理程序中,如不用表存放新闻内容,是不是把每条新闻存放...
作者 kevindai 发布于 2003-09-01 分类:php基础编程
<?
$filename="1.txt";
if(!($myfile=fopen($filename,"w")))
{
print("Error: ");
print("$filename could not be created
");
exit;
}
fputs($myfile,"save this line for later
");
fputs($myfile,"save this line too
");
fclose($myfile);
if(!($wj=fopen($filename,"r")))
{
print("Error:");
print("$filename could not be read
");
exit;
}
while(!feof($wj))
{
$myline=fgets($wj);
print("$myline
");
}
fclose($wj);
?>
错误提示是:Warning: fopen("1.txt", "w") - Permission denied in c:inetpubwwwroot est1.php on line 3
逛论坛交流:请你看一段代码
权限不够
1.txt没有建了。你建一下就可以了啊。
QUOTE:
我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)
昵称: 请输入验证码:
抢着回答
3 条回复
回复