首页 >后端开发 >php教程 >一个多文件上传的例子(原创)_PHP教程

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-07-21 16:10:09800浏览



//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;
}
?>






声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn