[EMAIL PROTECTED] wrote:
DelDir('my_folder');
I receive this warning:
Warning: rmdir(cartella): Directory not empty in c:\programmi\apache group\apache\users\test\project\delete.php on line 23
I have set chmod on linux chmod to 777 but i can delete folder only when is empty.
What I do ?
Thanks to all and sorry for my bad language.
By default linux does not delete non empty directories. Having said that
your pathname sure does not look like a linux pathname. If you are
indeed on linux and want to delete non empty directories you could try
`rm -rf dirname` but this cannot really be recommended for a web app. In
other words it's very dangerous to do something like this from a web app
because you can never rule out the possibility of something going wrong.
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php