D:\work3\sinykkphp\includes\upload\userfile/2011/01/12/create dir
Warning : mkdir() [function.mkdir ]: No such file or directory in D:\work3\sinykkphp\test-sinykk.php on line 13
mkdir($path,0777); 不能同时建两级目录
要用循环一个一个建目录如
$i = 0; while (!@mkdir($path, 0777)) { if (is_dir($path)) break; $i ++; if (@mkdir($path . str_repeat("/..", $i), 0777)) $i = 0; }