tp6创建目录

$date = date("Ymd");
$Absolute_Path=$_SERVER['SCRIPT_FILENAME'];
$user_path = substr($Absolute_Path,0,-9)."storage/cdjdade/{$date}";//保存路径
if(!is_dir($user_path)){
    mkdir($user_path);
}

你可能感兴趣的:(服务器,前端,linux)