读写一个txt文件,以前都挺正常的,在租用的服务器上也挺正常的,可是最近两天,在我自己的机器上总出现下面的错误,请问是怎么回事? PHP Warning: fopen(member/1/name.txt) [function.fopen]: failed to open stream: Permission denied in D:\inetpub\wwwroot\game\my_00_change.php on line 52 PHP Warning: fputs(): supplied argument is not a valid stream resource in D:\inetpub\wwwroot\game\my_00_change.php on line 53 PHP Warning: fclose(): supplied argument is not a valid stream resource in D:\inetpub\wwwroot\game\my_00_change.php on line 54 PHP 我的php文件
<?php
.......... $file=fopen("member/1/name.txt","w+"); //第52行
fputs($file,$name);
fclose($file);
?>
<?php
.......... $file=fopen("member/1/name.txt","w+"); //第52行
fputs($file,$name);
fclose($file);
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货