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

PHP mkdir new folder permissions issue

不言
Release: 2023-03-25 08:40:01
Original
2699 people have browsed it

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);
Copy after login

PHP mkdir new folder permissions issue

2, another way

    mkdir($dir,'0755',TRUE);
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template