PHP image Upload Notice: Useofundefinedconstanttmp_name-assumedtmp_nameinE: www30311add. phponline46Warning: mkdir () [function. mkdir]: PermissiondeniedinE: www30311add. PHP image Upload
Notice: Use of undefined constant tmp_name-assumed 'tmp _ name' in E: \ www \ 30311 \ add. php on line 46
Warning: mkdir () [function. mkdir]: Permission denied in E: \ www \ 30311 \ add. php on line 69
Notice: Use of undefined constant extension-assumed 'extension' in E: \ www \ 30311 \ add. php on line 74
Warning: move_uploaded_file (upload/1331530339.jpg) [function. move-uploaded-file]: failed to open stream: No such file or directory in E: \ www \ 30311 \ add. php on line 82
Warning: move_uploaded_file () [function. move-uploaded-file]: Unable to move 'C: \ WINDOWS \ Temp \ php19E5. tmp 'to 'upload/1331530339.jpg 'in E: \ www \ 30311 \ add. php on line 82
An error occurred while moving the file!
------ Solution --------------------
You have not set the permission to upload. it means that mkdir () is rejected and extension is not enabled.
------ Solution --------------------
Notice: Use of undefined constant tmp_name
Note: an unspecified constant tmp_name is used.
Solution: add the 'tmp _ name' quotation mark to it. Alternatively, you can disable the Notice error level by setting php. ini (you can use [tmp_name ).
Warning: mkdir () [function. mkdir]: Permission denied
Warning Access Denied. Make sure you have permissions on the current directory.
Failed to open stream: No such file or directory
Check whether the path is correct.