Blogger Information
Blog 51
fans 0
comment 1
visits 65064
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
递归创建文件夹
鱼的熊掌
Original
703 people have browsed it
    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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post