服务器端php接收图片文件,使用move_uploaded_file()时报错
程序员文章站
2022-06-08 14:09:34
...
[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文件夹的权限不够吗?权限配置如下:
这个问题该怎么解决呢?
换个移动的目标路径试下
上一篇: 浅谈php和.net的区别_PHP