This article mainly introduces the issue of permissions for new folders in PHP mkdir. It has certain reference value. Now I share it with you. Friends in need can refer to
mkdir($dir,0755,TRUE);
mkdir($dir,'0755',TRUE);
As can be seen from the above, the permissions of the resulting folder are not Not the same, please pay attention in the future and use the first method.
The above is the detailed content of PHP mkdir new folder permissions issue. For more information, please follow other related articles on the PHP Chinese website!