Home  >  Article  >  Backend Development  >  thinkphp缓存文件写入失败!怎么办?

thinkphp缓存文件写入失败!怎么办?

WBOY
WBOYOriginal
2016-06-23 13:59:411057browse

thinkphp缓存文件写入失败!怎么办?
服务器是unix,打开网站发现提示:缓存文件写入失败!
在网上查到有人说将rumtime目录权限改为777,但是我发现网站根目录没有rumtime这个文件夹,怎么办?
错误日志是:[07-Aug-2011 23:35:03] PHP Warning:  File upload error - unable to create a temporary file in Unknown on line 0


回复讨论(解决方案)

$_FILES['filename']['error']把这个输出下看看是几

php.ini
upload_tmp_dir ="缓存路径"

没有rumtime就创建呗~

runtime目录不一定在根目录,跟你的RUNTIME_PATH设置有关。

后来我发现原来是虚拟空间满了,放不下文件了,所以写不进数据,谢谢大家哦!

我也遇到这问题了刚刚,把Runtime文件夹删除了就ok了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn