<?php
// 递归创建目录
function recursive_mkdir($created_path, $before_path, $mode = 0777) {
$dirs = explode('/' , $created_path);
$count = count($dirs);
for ($i = 0; $i < $count; ++$i) {
if (empty($dirs[$i]))
continue;
$before_path .= $dirs[$i]."/";
if (!is_dir($before_path) && !mkdir($before_path, $mode)) {
continue;
}
} //by www.jb200.com
}