Forum Moderators: coopster

Message Too Old, No Replies

mkdir on windows

Permission weirdness

         

chrisjoha

4:51 pm on Aug 28, 2005 (gmt 0)

10+ Year Member



I read that you cannot specify permissions when creating folders thru php in windows. Ok, there's not much permissions to set. However, when creating folders with php they come up write protected which ends up having the script fail when it's supposed to remove the folder. Any ideas?

coopster

5:50 pm on Aug 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Works for me on a test box here.
<?php 
mkdir('test');
sleep(10);
rmdir('test');
?>

I fire up the script in a test browser, go to the root folder containing this script and sure enough, there is my "test" folder that has been created. 10 seconds later it is removed. No errors, no problem.

Perhaps it has something to do with who created the containing folder and the permissions there?

chrisjoha

8:31 pm on Aug 29, 2005 (gmt 0)

10+ Year Member



Maybe, I'll check it out tomorrow. I tried executing the script on the live server, and it worked there for some reason ...