
php学习
黄佳俊、
to be or not to be!
热爱生活!
执着学习!
展开
-
php报错:Notice: Undefined index: myfile in D:\XAMPP\htdocs\10.php on line 10
注意:在PHP上传文件时,input里的name不能是"file",否则就会报错。Notice: Undefined index: myfile inD:\XAMPP\htdocs\10.phpon line10Notice: Trying to access array offset on value of type null inD:\XAMPP\htdocs\10.phpon line10改为”myfile“就行了。...原创 2021-03-28 15:05:28 · 1415 阅读 · 0 评论 -
为什么我用“\n“不能在PHP代码中换行呢?
为什么我用"\n"不能在PHP代码中换行呢?\n 是在控制台上面输出的换行。在浏览器上面的换行符是 <br />。\n 会输出一个空格。原创 2021-03-21 19:35:35 · 560 阅读 · 0 评论