I have this snippet which actually makes the dir, but it’s permissions are set to 755 and not 777. Why is the mkdir command not working correctly?
$path = 'assets/images/photoAlbums/'.$album;
$test = mkdir($path, 0777);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
cf. http://www.php.net/manual/en/function.mkdir.php
The umask is set to 0002 by default (at least at my system and on cli), that way the write-Bit is not set for everyone.