Home > Backend Development > PHP Tutorial > 服务器端php接收图片文件,使用move_uploaded_file()时报错

服务器端php接收图片文件,使用move_uploaded_file()时报错

WBOY
Release: 2016-06-06 20:18:00
Original
1835 people have browsed it

<code>[19-Feb-2016 12:45:35 Asia/Shanghai] PHP Warning:  move_uploaded_file(D:\USERS\userlogo\abc1234.png): failed to open stream: Permission denied in D:\USERS\2.php on line 16
[19-Feb-2016 12:45:35 Asia/Shanghai] PHP Warning:  move_uploaded_file(): Unable to move 'C:\websoft\php\tmp\php54.tmp' to 'D:\USERS\userlogo\abc1234.png' in D:\USERS\2.php on line 16
是这个C:\websoft\php\tmp文件夹的权限不够吗?权限配置如下:
这个问题该怎么解决呢?
</code>
Copy after login
Copy after login

服务器端php接收图片文件,使用move_uploaded_file()时报错

服务器端php接收图片文件,使用move_uploaded_file()时报错

回复内容:

<code>[19-Feb-2016 12:45:35 Asia/Shanghai] PHP Warning:  move_uploaded_file(D:\USERS\userlogo\abc1234.png): failed to open stream: Permission denied in D:\USERS\2.php on line 16
[19-Feb-2016 12:45:35 Asia/Shanghai] PHP Warning:  move_uploaded_file(): Unable to move 'C:\websoft\php\tmp\php54.tmp' to 'D:\USERS\userlogo\abc1234.png' in D:\USERS\2.php on line 16
是这个C:\websoft\php\tmp文件夹的权限不够吗?权限配置如下:
这个问题该怎么解决呢?
</code>
Copy after login
Copy after login

服务器端php接收图片文件,使用move_uploaded_file()时报错

服务器端php接收图片文件,使用move_uploaded_file()时报错

换个移动的目标路径试下

Related labels:
php
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