mkdir("/path/to/my/dir", 0700);
Is the 0 in 0777 necessary?
Yes. The leading zero will make the number interpreted as octal number; without it would be interpreted as decimal number.
var_dump(0700); // int(448)
var_dump(700); // int(700)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With