PHP兑现多文件上传
时间:2021-07-01 10:21:17
帮助过:4人阅读
PHP实现多文件上传
求够一个PHP实现多文件上传的例子,直接贴代码,谢谢。
PHP
分享到:
------解决方案--------------------测试代码
print_r($_FILES);
?>
选择两个文件后截图
提交后 $_FILES 数组
Array
(
[file] => Array
(
[name] => Array
(
[0] => i.jpg
[1] => Ico.zip
[2] =>
)
[type] => Array
(
[0] => image/pjpeg
[1] => application/x-zip-compressed
[2] =>
)
[tmp_name] => Array
(
[0] => C:\Documents and Settings\Administrator\Local Settings\Temp\php188.tmp
[1] => C:\Documents and Settings\Administrator\Local Settings\Temp\php189.tmp
[2] =>
)
[error] => Array
(
[0] => 0
[1] => 0