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

WBOY
Release: 2016-06-13 13:36:46
Original
2074 people have browsed it

为什么修改了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'
Copy after login

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

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

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