PHP image upload solution

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
Error moving file!

——Solution——————–
You didn’t set the permission to allow uploading. It said that your mkdir() was rejected and the extension was not opened.

——Solution——————–
Notice : Use of undefined constant tmp_name
Note: Use of undefined constant tmp_name

Solution: Add ‘tmp_name’ quotes to it. Or you can turn off the Notice error level by setting php.ini (you can use [tmp_name]).

Warning: mkdir() [function.mkdir]: Permission denied
Warning: Access denied. Please confirm that you have permissions on the current directory.

failed to open stream: No such file or directory
Please check if there is any problem with the path.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/php-image-upload-solution-4/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索