Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move

今天文件上传出现Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move


运行结果:
Warning: move_uploaded_file(10/02.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in E:apps教程erv-win32-2.5.10AppServwww10index_7.php on line 26

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:WINDOWStempphp1A.tmp' to '10/02.jpg' in E:appserv-win32-2.5.10AppServwww10index_7.php on line 26
目录路径出错!


解决办法,把相对路径改绝对

方法二

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move
上传的时候出现类似这种报错,原因是目录权限是否为可写的问题。
一般设置777就可以解决。、
修改权限命令:


注:-R 批量执行

09-04 15:22