upload_dir)){ $this->mkdir_r($this->upl">
时间:2021-07-01 10:21:17 帮助过:2人阅读
function mkdir_r($dirName, $rights=0777){
$dirs = explode('/', $dirName);
$dir='';
foreach ($dirs as $part) {
$dir.=$part.'/';
if (!is_dir($dir) && strlen($dir)>0)
mkdir($dir, $rights);
}
}
}
// 使用方法
$files = new newFold();
本站原创.net教程">www.bkjia.com
http://www.bkjia.com/PHPjc/444976.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444976.htmlTechArticlephp教程 批量创建文件目录方法 class newFold{ var $upload_dir=date(Y/m/d); if(!is_dir($this-upload_dir)){ $this-mkdir_r($this-upload_dir,0777); } function mkdir_r($dirNam...