PDA

Click to See Complete Forum and Search --> : rmdir gives Warning


nebulom
Aug 29th, 2007, 07:45 PM
I'm on windows XP and rmdir gives me warning about permission denied for removing a directory but I created it using mkdir(dirname($fileName), 0777); Anything specific I'm missing? Thanks in advance.

Lord Orwell
Aug 29th, 2007, 09:19 PM
is there a file in the directory? it has to be empty for rmdir to work. And that includes no windows-generated hidden files such as thumbs.db

nebulom
Aug 29th, 2007, 10:05 PM
It's an empty directory.

Lord Orwell
Aug 29th, 2007, 10:17 PM
hmm. i don't know the flags 0777 sets, but did you perhaps set it as a system folder on accident?

penagate
Aug 30th, 2007, 12:15 AM
What user account is PHP running under?
Note that the manual specifies the mode parameter of mkdir is ignored under Windows.

nebulom
Aug 30th, 2007, 01:44 AM
Hey PG, I'm in Administrators Group. When I tried to port it on some Linux box here, it doesn't give an error. Even tried giving full control of the folders but still gives a warning and doesn't delete the directories. Any idea?