Heim > Artikel > Backend-Entwicklung > 一个多文件上传的例子(原创)_PHP教程
//filename:multi_upload.php
if($ifupload)
{
$path=AddSlashes(dirname($PATH_TRANSLATED))."\\upload\\";
for($i=1;$i {
$files="afile".$i;
if(${$files}!="none")
{
if(copy(${$files},$path.${$files."_name"}))
{
}
}
}
print "You have uploaded files successfully
";
print "Return";
exit;
}
?>