PHP网站高手进!

来源:百度知道 编辑:UC知道 时间:2024/05/25 03:41:27
首先 向乐于帮助他人的高手致敬

我的PHP网站 子页上方经常出现这样一段代码

Warning: file_put_contents() [function.file-put-contents]: Only 0 of 23670 bytes written, possibly out of free disk space in /www/users/wepeng.com/includes/cls_template.php on line 187

Notice: can't write:/www/users/wepeng.com/templates/caches/article_B07569DA.php in /www/users/wepeng.com/includes/cls_template.php on line 189

我不知道是为什么 请高手帮忙 解释一下

该怎么让我的网站恢复正常!!

文件的属性改改,如果主机为win的改为可读写,linux的改为777,也就是权限问题,最好在file_put_contents后加个判断是否可写

只有 20M 空间!

满了!

建议LZ sudo apt-get autoclean 一下

并不是权限问题。
Only 0 of 23670 bytes written, possibly out of free disk space

23k的数据,只有0k被写入了,可能是可用磁盘空间不足。

检查一下你的网站目录,是不是空间被占满了?

应该是权限问题,设置一下读写权限