【PHP原生】循环创建目录

判断目录是否存在,不存在则循环创建

$path_complete ="qrcodes/online/complete/";
if(!file_exists($path_complete)){ //file_exists检测目录或文件是否存在
mkdir($path_complete,0777,true);
}

 

 

 

posted @ 2018-10-16 09:43  PHPer_Cody  阅读(329)  评论(0)    收藏  举报