Home >Backend Development >PHP Tutorial >Share with you some precautions for PHP file upload_PHP Tutorial

Share with you some precautions for PHP file upload_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:32:411292browse

$userfile_name The name of the uploaded document
$userfile_tmp_name The temporary name where the uploaded document is saved
$userfile_size The size of the uploaded document, in bytes
$ userfile_type The mime type of the uploaded document

The above variables in PHP file uploading are normal in the windows+apache environment, but if they are inaccessible under Linux, you can use the following variables

$_FILE['userfile']['name'] is equivalent to $userfile_name
$_FILE['userfile']['tmp_name'] is equivalent to $userfile_tmp_name
$_FILE['userfile']['size'] Equivalent to $userfile_size
$_FILE['userfile'][type] Equivalent to $userfile_type


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446117.htmlTechArticle$userfile_name The name of the uploaded document $userfile_tmp_name The temporary name where the uploaded document is saved $userfile_size The size of the uploaded document, in bytes $userfile_type The mime type of the uploaded document ends with...
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