Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['excluir'])){
- if($objs = glob($dir."a1/*")){
- foreach($objs as $obj) {
- is_dir($obj)? ApagaDir($obj) : unlink($obj);
- }
- }
- if($objs = glob($dir."a2/*")){
- foreach($objs as $obj) {
- is_dir($obj)? ApagaDir($obj) : unlink($obj);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement