Answer the question
In order to leave comments, you need to log in
The mkdir function does not create a folder with permissions of 775 and 777, but creates 755 in both cases. What's the matter?
Hello everyone, here is the code:
mkdir($_SERVER['DOCUMENT_ROOT'] . '/test/', 0777, true);Answer the question
In order to leave comments, you need to log in
$old_umask = umask(0);
mkdir($_SERVER['DOCUMENT_ROOT'] . '/test/', 0777, true);
umask($old_umask);
Why do you need such permissions? Read about it before setting such permissions.
you do not need to create 777, this indicates that you have an error with the rights. but this is not a reason to decide it in such an occasion.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question