$folder = "./Uploads/".date('Y-m'); if (!is_dir($folder)) { //第三个参数是“true”表示能创建多级目录,iconv防止中文目录乱码 mkdir(iconv("UTF-8", "GBK", $folder),0777,true); }
$folder = "./Uploads/".date('Y-m'); if (!is_dir($folder)) { //第三个参数是“true”表示能创建多级目录,iconv防止中文目录乱码 mkdir(iconv("UTF-8", "GBK", $folder),0777,true); }