php tutorial batch creation of file directories method
class newFold{
var $upload_dir=date("Y/m/d");
if(!is_dir($this->upload_dir)) {
$this->mkdir_r($this->upload_dir,0777);
}
function mkdir_r($dirName, $rights=0777){
$dirs = explode ('/', $dirName);
$dir='';
foreach ($dirs as $part) {
$dir.=$part.'/';
if (! is_dir($dir) && strlen($dir)>0)
mkdir($dir, $rights);
}
}
}
// How to use
$files = new newFold();
Original .net tutorial on this site">www.bkjia.com