$path1 ="/Upload/".date('Y-m-d')."/";
$savePath=$_SERVER['DOCUMENT_ROOT'].'Backup'.$path1;
if(!in_array($file_type,$ext_arr))
{
echo "<script>alert('文件格式不对');</script>";
}
if (!file_exists($savePath)) {
$newfile = mkdir($savePath);
}
相关资料链接
http://www.cnblogs.com/fakis/archive/2010/04/16/1976646.html
http://www.w3school.com.cn/php/func_filesystem_mkdir.asp