note 36416 deleted from function.mkdir by vincent
| From: | vincent@php.net | Date: | Thu, 09 Oct 2003 10:59:38 +0000 |
| Subject: | note 36416 deleted from function.mkdir by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58109@lists.php.net to get a copy of this message | ||
Note Submitter: springchun@21cn.com(by 21ks.com)
----
function mk_dir($dir){
$tmp=explode('<path>',str_replace('/','<path>/</path>',$dir));
$path='';
foreach($tmp as $value){
$path.=$value;
if(!@is_dir($path)&&$value!='/')$boll=@mkdir($path,0777);
}
return $boll;
}