1024programmer PHP I have a very basic doubt about PHP, please give me some advice.

I have a very basic doubt about PHP, please give me some advice.

A very basic problem with PHP, please give me some advice
<?php
$upfile=$_FILES[“upfile”];
?>

Upload File

The above is the code Content, when I run the web page, I always get an error message from the $upfile=$_FILES[“upfile”]; line. What went wrong?

——Solution——————–
Well…

Actually, this is a prompt. It is an improvement of PHP after version 5.x. If you feel irritated, you can block these prompts by turning off the error prompts in php.ini. , of course I don’t recommend doing this. Therefore, such submitted value issues can be judged through isset. If it is a variable, it can be solved by initialization assignment.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/i-have-a-very-basic-doubt-about-php-please-give-me-some-advice-2/

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: [email protected]

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
首页
微信
电话
搜索