$riqi = date("Ymd"); $path = "./data/upload/qrcode/".$riqi; if (!file_exists($path)){ mkdir($path); }