$tp = array("image/gif","image/pjpeg","image/jpeg","image/png" );
if( ! in_array($_FILES["pictures"]["type"][$key],$tp))
{
echo "<script language='javascript'>";
echo "alert(\"文件类型错误! \")";
echo "</script>";
}
当上传mp3文件时有的能执行alter()而有的却不行,不知道到底为什么!!!
例子:当mp3名字为:-The Girl Is Mine Ft Brandy Monica (Remix).mp3就检测不出来
而当名字为:Family Conference.mp3时却能执行alert()
觉得很莫名其妙!!!