Home > Article > Backend Development > php mkdir() function creates folders and permission settings
Analysis and test results: 1. The directory permissions specified by the mkdir function can only be less than or equal to the default permissions set by the system umask. For example, the default umask of Linux is generally 0022, that is, the default permission for creating a directory is 0755, so at this time php mkdir('./aa/',0777) gets the permission of the directory to be 0755. For linxu umask content, please refer to:
Example:
|