Hi,
From what I read from the PHP manual, chmod on a Windows platform
should have no effect, and that seems totally normal (unless someone on
sourceforge has a windows port of that!).
I create a directory on my Windows box, and set chmod 777 on it (that
should be full access for everyone if my memory serves me correctly),
but when I want to rmdir that directory, I get a permission denied
message (I can delete contents from that directory with no problems, and
I can create/delete subdirectories either by hand or by script with no
problems.
I tried creating a subdirectory with the same name and without the chmod
in a test script and everything went OK...
I then commented out the chmod line in my script, and now, directory
creation and delete works fine!
So, for PHP on windows (xp home?), chmod 777 makes the file undeletable
for another PHP script, but not for Windows explorer or the windows/dos
command line...?!?!
Anyone got an explanation for this? I'm intrigued!
Cheers,
Daniel
From what I read from the PHP manual, chmod on a Windows platform
should have no effect, and that seems totally normal (unless someone on
sourceforge has a windows port of that!).
I create a directory on my Windows box, and set chmod 777 on it (that
should be full access for everyone if my memory serves me correctly),
but when I want to rmdir that directory, I get a permission denied
message (I can delete contents from that directory with no problems, and
I can create/delete subdirectories either by hand or by script with no
problems.
I tried creating a subdirectory with the same name and without the chmod
in a test script and everything went OK...
I then commented out the chmod line in my script, and now, directory
creation and delete works fine!
So, for PHP on windows (xp home?), chmod 777 makes the file undeletable
for another PHP script, but not for Windows explorer or the windows/dos
command line...?!?!
Anyone got an explanation for this? I'm intrigued!
Cheers,
Daniel
Comment