如何用php创建与删除多级目录函数
发布时间:2020-12-13 20:50:33 所属栏目:PHP教程 来源:网络整理
导读:function deldir( $dir ) { $dh =opendir( $dir ); while ( $file =readdir( $dh )) { if ( $file != . $file != .. ) { $fullpath = $dir . / . $file ; if (! is_dir ( $fullpath )) { unlink( $fullpath ); } else { $this -deldir( $fullpath ); } } } c
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |