Home >php教程 >php手册 >PHP彻底销毁目录及目录下的所有文件

PHP彻底销毁目录及目录下的所有文件

WBOY
WBOYOriginal
2016-06-21 08:52:25838browse

 

01 function tep_delete_dir($dir$DeleteMe = false) {

02         if(!$dh = @opendir($dir)) return;

03         while (false !== ($obj = readdir($dh))) {

04             if(
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn