Re: [PHP] Function Get Error

2004-09-03 Thread raditha dissanayake
[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 a

[PHP] Function Get Error

2004-09-03 Thread [EMAIL PROTECTED]
I write this function to delete directory and file but when i 've a directory not empty i get error The code that i write is this: function DelDir($dir) { if (!($handle = opendir($dir))) die("Error, it's not possible open $dir"); while($file = readdir($handle) !== false) { if (