使用下面的函数,可以实现php递归创建不存在的目录
function autoCreateDir($dir){ return is_dir($dir) or autoCreateDir(dirname($dir)) and mkdir($dir,0777); }
近期评论