PHP 文件上传 没任何异常提示但是文件上传以后没这个文件

WBOY
Release: 2016-06-13 12:34:57
Original
703 people have browsed it

求助 PHP 文件上传 没任何错误提示但是文件上传以后没这个文件
foreach($_FILES['imgs']['type'] as $k=>$v){
if ((($v == "image/gif") || ($v == "image/jpeg") || ($v == "image/pjpeg")))
{
if ($_FILES["imgs"]["error"][$k] == 0)
{
$fname=md5($_FILES["imgs"]["name"][$k]).'.'.pathinfo($_FILES["imgs"]["name"][$k], PATHINFO_EXTENSION);
move_uploaded_file($_FILES["imgs"]["tmp_name"][$k],$fname);
}
}
else
{
echo "Invalid file";
}

}

没有任何错误提示。。。还有就是 $_FILES["imgs"]["tmp_name"] 的位置是 C:\\WINDOWS\\php2EF.tmp 这样的  但是在这个位置没有找到文件。。。。我以前上传都没问题的 很奇怪这次就是不行。还有是本地网站 winxp系统

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!