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.
Printable View
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.
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
It's an empty directory.
hmm. i don't know the flags 0777 sets, but did you perhaps set it as a system folder on accident?
What user account is PHP running under?
Note that the manual specifies the mode parameter of mkdir is ignored under Windows.
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?