function createDirectory($dir) { $dir=ltrim($dir,'./'); $arr = explode('/',$dir); $path='./'; for ($i = 0; $i < count($arr); $i++) { $path.='/'.$arr[$i]; if(!is_dir($path)){ mkdir($path); chmod($path,0777); } } }
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!