function createFolder($path)
{
if (!file_exists($path))
{
createFolder(dirname($path));
mkdir($path, 0777 );
}
}
createFolder("2007/3/4");//Create the directory structure of 2007/3/4 in the current directory.
http://www.bkjia.com/PHPjc/318972.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318972.htmlTechArticlefunctioncreateFolder($path) { if(!file_exists($path)) { createFolder(dirname($path)) ; mkdir($path,0777); } } createFolder("2007/3/4");//Create the directory structure of 2007/3/4 in the current directory...