move_uploaded_file文件上传失败 上传之后文件名是乱码
程序员文章站
2022-04-22 22:44:09
...
网址:http://blog.sina.com.cn/s/blog_976934420101cpnz.html
不多说,先贴出我代码;
$filename = $_FILES['file']['name'];
$file = "../uploads/".$filename;
$file=iconv("UTF-8","GB2312//IGNORE", $file);
if (!move_uploaded_file ($_FILES['file']['tmp_name'],$file)){
echo "";
}
else{
$file=iconv("GB2312","UTF-8//IGNORE", $file);
echo "
下一篇: MySQL备份与AB复制