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

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

WBOY
Release: 2016-06-23 13:59:41
Original
1134 people have browsed it

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了

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template