PHP mkdir new folder permission problem

1, a way to create a new folder

    mkdir($dir,0755,TRUE);

write picture description here

2, another way

    mkdir($dir,'0755',TRUE);

write picture description here

As can be seen from the above, the permissions of the resulting folder are not the same, we should pay attention to it in the future and use the first method.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325522878&siteId=291194637