Home >Backend Development >PHP Tutorial >PHP上传文件小例证

PHP上传文件小例证

WBOY
WBOYOriginal
2016-06-13 12:15:19785browse

PHP上传文件小例子

<?phpecho $_FILES[&#39;hello&#39;][&#39;error&#39;];echo "start".$_FILES[&#39;hello&#39;][&#39;type&#39;];echo $_FILES[&#39;hello&#39;][&#39;size&#39;];echo $_FILES[&#39;hello&#39;][&#39;tmp_name&#39;]."end";move_uploaded_file($_FILES[&#39;hello&#39;][&#39;tmp_name&#39;], "./windows.pdf");echo "finish!!";?><p><font color="red">hello</font></p><?php ?>

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