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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:12:41893browse

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')
注意大小写
Statement:
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