<?php /** * Created by PhpStorm. * User: dllo * Date: 16/8/9 * Time: 下午5:49 */ header("Content-type:text/html;charset=utf-8"); function removeDir($path){ if (is_dir($path)){ $arr = scandir($path); if (count($arr) > 2){ for($i = 2; $i < count($arr); $i++){ $url = $path."/".$arr[$i]; removeDir($url); } } rmdir($path); }else{ unlink($path); } }
remove.php
最新推荐文章于 2023-05-11 10:42:04 发布