Warning: move_uploaded_file () [function. move-uploaded-file]: Unabletomovequot; quot; n... warning: move_uploaded_file () [function. move-uploaded-file]: Unable to move
"" enctype="multipart/form-data" method="post">
Running result:
Warning: move_uploaded_file (10/02. jpg) [function. move-uploaded-file]: failed to open stream: No such file or directory in E: appserv-win32-2.5.10AppServwww10index_7.php on line 26
Warning: move_uploaded_file () [function. move-uploaded-file]: Unable to move 'C: WINDOWStempphp1A. tmp 'to '2012 .jpg 'in E: appserv-win32-2.5.10AppServwww10index_7.php on line 26 directory path error!
Method 1: solution,Set
Move_uploaded_file ($ _ FILES ["file"] ["tmp_name"], "upload/". $ _ FILES ["file"] ["name"])Changed:
Move_uploaded_file ($ _ FILES ["file"] ["tmp_name"], "d:/". $ _ FILES ["file"] ["name"])
Method 2: Warning: move_uploaded_file () [function. move-uploaded-file]: Unable to move. an error similar to this occurs during Upload because the directory permission is writable.
Generally, you can set 777 to solve the problem. modify the permission command:
chmod 777 filename chmod 777 dirname sudo chmod 777 filename/dirname chown wangr:admin dirname -R
Note:-R batch execution
Address:
Reprinted at will, but please attach the article address :-)