Home >Backend Development >PHP Tutorial >PHP multiple file upload analysis_PHP tutorial
Summary of personal understanding of
<code id="code0"><br><font face="仿宋_GB2312"><form action="upload.php" method="post" enctype="multipart/form-data"><br><p><br><input type="file" name="pictures[]" /><br /><br><input type="file" name="pictures[]" /><br /><br><input type="file" name="pictures[]" /><br /><br><input type="submit" value="上传" /><br></p><br></form> //手册中实例。</font>
<font face="仿宋_GB2312"> <br><?php<br />print_r($_FILES);<br />?></font>
PHP receiving file code: <font face="imitation Song_GB2312"> <br><?php<br />print_r($_FILES);<br />?><br><br>View source file: <br><br>Array<br>(<br> [pictures] => Array<br> [name] => Array<br> (<br> 0] => file1.txt<br> 1] => file2.txt<br> (<br> -stream<br> [tmp_name] => Array<br>(<br> [2] => D:EasyPHPtmpphp49.tmp<br> )<br> [error] => Array<br> [2] => 0<br> )<br> [size ] => Array<br> )<br> Assuming files named /file1.txt and /file2.txt are submitted, the value of $_FILES['pictures']['name'][0] will be file1.txt, and $_FILES[' The value of pictures']['name'][1] will be file2.txt. Similarly, $_FILES['file2.txt']['size'][0] will contain the size of the file file1.txt, and so on. <br>
<br>
<br><br><br>http://www.bkjia.com/PHPjc/445075.html<br><br>www.bkjia.com<br><br>true<br><br>http: //www.bkjia.com/PHPjc/445075.html<br>TechArticle<p align="left"></p>
<div style="display:none;">Personal understanding summary of PHP multi-file upload. Multi-file upload is a basic application in PHP. Here I will share the relevant knowledge with you. Let me introduce it in detail. My level is limited, so please give me more opinions. Everyone...<span id="url" itemprop="url"></span><span id="indexUrl" itemprop="indexUrl"></span>
<span id="isOriginal" itemprop="isOriginal"></span>
</div></font>