Home > php教程 > php手册 > body text

同你分享PHP文件上传的一些注意事项

WBOY
Release: 2016-06-13 11:09:41
Original
1061 people have browsed it

$userfile_name 上传文档名称
$userfile_tmp_name 上传文档保存到的临时名称
$userfile_size 上传文档大小,单位bytes
$userfile_type 上传文档的mime类型

以上这些PHP文件上传中的变量在windows+apache环境下一切正常,但是如果在linux下出现无法访问的情况,可以使用以下变量

$_FILE['userfile']['name'] 等同于$userfile_name
$_FILE['userfile']['tmp_name'] 等同于$userfile_tmp_name
$_FILE['userfile']['size'] 等同于$userfile_size
$_FILE['userfile'][type] 等同于$userfile_type


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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template