Possible Duplicate:
PHP mkdir 0777 fail chmod 0777 works
My PHP code has something like this:
$success = mkdir($directory_name,
0777, TRUE);
When I look at the actual folder it created, the permissions are 0755. Any ideas what might be causing this?
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.
The actual permissions are impacted by the current
umask()value. If it is limited to755, so will the directory permissions. (It’sxored off the requested777)