Home > Backend Development > PHP Tutorial > move_uploaded_file通常使用后页面空白,非post

move_uploaded_file通常使用后页面空白,非post

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:12:41
Original
894 people have browsed it

move_uploaded_file正常使用后页面空白,非post
$result=move_uploaded_file($_FILES['this_file']['tmp_name'],"../uploads/{$_FILES['the_file']['name']}");
if($result){...}
请问,move_uploaded_file,的合法文件如何确定

------解决方案--------------------
enctype="multipart/form-data" 加上没?
------解决方案--------------------
贴出你的代码
------解决方案--------------------

探讨
$result=move_uploaded_file($_FILES['this_file']['tmp_name'],"../uploads/{$_FILES['the_file']['name']}");
if($result){...}
请问,move_uploaded_file,的合法文件如何确定

------解决方案--------------------
if($_SERVER['REQUEST_METHOD']=='POST')
注意大小写
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