rmdir permission errors on a Windows box

From: Alex Kouzemtchenko (kuza55_at_gmail.com)
Date: 09/29/04


Date: 29 Sep 2004 00:19:55 -0700

ok, I've got a peice of code that deletes folders, wether empty or
non-empty and I keep getting these errors:

Warning: rmdir(./modules/test/Copy of test/Random Folder)
[function.rmdir]: Permission denied in
c:\webdesign\fms\modules\functions.php on line 44

Warning: rmdir(./modules/test/Copy of test) [function.rmdir]:
Directory not empty in c:\webdesign\fms\modules\functions.php on line
52

Warning: rmdir(./modules/test/) [function.rmdir]: Directory not empty
in c:\webdesign\fms\modules\functions.php on line 52

I've tried including chmod("$dir/$entryname", 0777); in my function
before it attempts to do anything with any file or directory, and I've
also tried using ini_set ("safe_mode", 0); to turn safe mode off but i
still get these errors.

I've exhausted everything i can think of, so yeah, eny help anyone can
give I will greatly appreciate.



Relevant Pages

  • Re: rmdir permission errors on a Windows box
    ... > ok, I've got a peice of code that deletes folders, wether empty or ... I'd say that it's an NTFS disk and the user the web server runs as does not ... have write permission on those folders. ...
    (comp.lang.php)
  • Re: rmdir permission errors on a Windows box
    ... >> ok, I've got a peice of code that deletes folders, wether empty or ... > have write permission on those folders. ... First of all, yes it is an NTFS disk (Its my home machine, I don't ...
    (comp.lang.php)