Rumah >pembangunan bahagian belakang >tutorial php >服务器端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>
<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>
换个移动的目标路径试下