一个多文件上传的例子(原创)

作者:袖梨 2022-07-02
//filename:multi_upload.php
if($ifupload)
{
    $path=AddSlashes(dirname($PATH_TRANSLATED))."upload";
    for($i=1;$i<=8;$i++)
    {
     $files="afile".$i;
     if(${$files}!="none")
     {
        if(copy(${$files},$path.${$files."_name"}))
        {
       
        }
     }
     }
     print "You have uploaded files successfully
";
     print "Return";
     exit;
}
?>





多个文件上传