Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ensure $dir ends with a slash
- $dir = "../downloads/clientes/".$row_Recordset2['utilizador']/
- function delTree($dir) {
- $files = glob( $dir . '*', GLOB_MARK );
- foreach( $files as $file ){
- if( substr( $file, -1 ) == '/' )
- delTree( $file );
- else
- unlink( $file );
- }
- rmdir( $dir );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement