Re: Function Get Error

From: Date: Fri, 03 Sep 2004 09:04:48 +0000
Subject: Re: Function Get Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195701@lists.php.net to get a copy of this message
difenza2003@libero.it 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.

« previous php.general (#195701) next »