I\'m trying to create a directory on my server using PHP with the command:
mkdir(\"test\", 0777);
But it doesn\'t give full permissions, on
For those who tried
mkdir('path', 777);
and it did not work.
It is because, apparently, the 0 preceding the file mode is very important which tells chmod to interpret the passed number as an Octal instead of a decimal.
Reference
Ps. This is not a solution to the question but only an add-on to the accepted anwser