Home > Backend Development > PHP Tutorial > PHP一个很基础的小疑点,求指教

PHP一个很基础的小疑点,求指教

WBOY
Release: 2016-06-13 09:58:43
Original
787 people have browsed it

PHP一个很基础的小问题,求指教
 $upfile=$_FILES["upfile"];
?>


 上传文件
 

 

以上为代码内容,运行网页时总提示我 $upfile=$_FILES["upfile"];这一行报错。到底哪错了?

------解决方案--------------------
嗯.....

实际上这是个提示,是5.x版本后php的一个改进,如果你觉得烦躁可以通过关闭php.ini里的错误提示来屏蔽掉这些提示,当然我是不建议这么做的。所以这类提交值问题都可以通过isset来判断。如果是某个变量可以用初始化赋值的方式来解决。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template