[PHP] pobierz, plaintext <?phpfunction deldir($dir) {$dh=opendir($dir);while ($file=readdir($dh)) {if($file!=\".\" && $file!=\"..\") {$fullpath=$dir.\"/\".$file;if(!is_dir($fullpath)) {unlink($fullpath);} else {deldir($fullpath);}}}closedir($dh); if(rmdir($dir)) {return true;} else {return false;}} ?>[PHP] pobierz, plaintext