当前位置:Gxlcms > PHP教程 > 服务器端php接收图片文件,使用move_uploaded_file()时报错

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

时间:2021-07-01 10:21:17 帮助过:14人阅读

[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文件夹的权限不够吗?权限配置如下:
这个问题该怎么解决呢?

回复内容:

[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文件夹的权限不够吗?权限配置如下:
这个问题该怎么解决呢?

换个移动的目标路径试下

人气教程排行