To delete the directory(folder) in the linux server using php code? -


i want delete folder in linux server using php ??

scenario::

when user uploads images , new folder created based on name...when delete user account,his named folder should deleted..

use unlink , rmdir. calling unlink($file) delete file filename $file, non recursive (it deletes 1 file @ time, , won't delete directory if not empty).

there tons , tons of examples recursively delete directory here : http://fr2.php.net/unlink


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -