文件上传
alert('文件上传成功。');";
}
echo "
";
echo "
";
foreach($_FILES['upfile'] as $name=>$value)
{
echo $name.'='.$value.'
';
//echo 'asds'.$value.'
';
}
echo "
";
}
//上传成功后浏览目录
if(is_dir("uploads/"))
{
$dir = scandir("uploads/");
echo "
";
}
else
{
echo "目录路径错误!";
}
?>
分享标题:PHP文件上传代码
分享网址:
http://chengdu.cdxwcx.cn/article/igphgo.html