Home  >  Article  >  Backend Development  >  为什么修改了upload_tmp_dir却没有作用,该怎么处理

为什么修改了upload_tmp_dir却没有作用,该怎么处理

WBOY
WBOYOriginal
2016-06-13 13:36:462036browse

为什么修改了upload_tmp_dir却没有作用
我在php.ini中把upload_tmp_dir设置为自定义的临时目录,重启apache,phpinfo()的结果也是我设置的目录了。
可上传文件的临时目录还是默认的/tmp,请问这是什么原因?
我在php.ini中的设置如下:

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->upload_tmp_dir = '/var/www/tmp'

Ubuntu 11.10+Apache/2.2.20 (Ubuntu)+PHP 5.3.6-13ubuntu3.6

------解决方案--------------------
看看phpinfo,有没有设置成功。再确认所有用户对/var/www/tmp有写权限
------解决方案--------------------
探讨

看看phpinfo,有没有设置成功。再确认所有用户对/var/www/tmp有写权限
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