PHP is a very basic small question. could you please advise ;? Php & nbsp; $ upfile =$ _ FILES [& quot; upfile & quot;];? & Gt; & lt; forpolichod = & quot; post & quot; name = & quot; upfile & quot; enctype = & quot PHP is a basic small problem. please advise
$ Upfile = $ _ FILES ["upfile"];
?>
The above is the code content. when running the webpage, the system always prompts $ upfile = $ _ FILES ["upfile"]; this line reports an error. What's wrong?
------ Solution --------------------
Well .....
In fact, this is a prompt, which is 5. an improvement of php after version x. If you feel annoyed, you can disable php. ini error prompts to block these prompts, of course, I do not recommend this. Therefore, this type of submitted value can be determined through isset. For a variable, you can use the initialization value assignment method.
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