PHP image Upload Notice: Useofundefinedconstanttmp_name-assumed 'tmp _ name' inE: \ www \ 30311 \ add. phponline46Warning: mkdir () [function. m 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service