Home  >  Article  >  Backend Development  >  PHP mkdir new folder permissions issue

PHP mkdir new folder permissions issue

不言
不言Original
2018-05-02 14:52:572637browse

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

1, a way to create a new folder.

    mkdir($dir,0755,TRUE);

PHP mkdir new folder permissions issue

2, another way

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

PHP mkdir new folder permissions issue

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php http request classNext article:php http request class