Possible Duplicate:
PHP: delete directory with files in it?
If i've some files inside the following path
mysite.com/install
and i've created file named as "die.php
" outside /install/
where its path mysite.com/die.php
once i executed it, it should delete install
folder with all its files inside.
I've added to die.php the following code
<?PHP rmdir('install');?>
but it only delete /install/
folder when it is empty ! and if it have files it gives error Directory not empty
in mysite.com/install
so any idea how to do it.