Parent Directory
|
Revision Log
Remove redundant PHP closing tag
| 1 | <?php |
| 2 | function delTree($dir) |
| 3 | { |
| 4 | $files = array_diff(scandir($dir), array('.', '..')); |
| 5 | |
| 6 | foreach ($files as $file) |
| 7 | { |
| 8 | if (is_dir("$dir/$file")) |
| 9 | { |
| 10 | delTree("$dir/$file"); |
| 11 | } |
| 12 | else |
| 13 | { |
| 14 | unlink("$dir/$file"); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | return rmdir($dir); |
| 19 | } |
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |