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
Post a Comment