要注意您的文件在HTTP目录下的访问权限……祝好运

解决方案 »

  1.   

    什么系统???linux还是windows
    最好把代码帖出来1
      

  2.   

    我是在win2000下开发的:文件中的语句是:
      if ($msg !=  ""){
     85行 $fp = fopen("c:\\inetpub\\wwwroot\\mytest\\$write_file","a+");
      86行$fw = fwrite($fp,"\n<font color=$color><b>[$t] $name$say:</b>$msg</font>");
       87行 fclose($fp);}报的错误是:Warning: fopen("c:\inetpub\wwwroot\mytest\$write_file","a+") - Permission denied in c:\inetpub\wwwroot\mytest\input.php on line 85Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\mytest\input.php on line 87Warning: Supplied argument is not a valid File-Handle resource in c:\inetpub\wwwroot\mytest\input.php on line 88