linux - The difference between using php's mkdir function and php using the system function to execute the mkdir command

WBOY
Release: 2023-03-01 22:06:02
Original
1320 people have browsed it

system('mkdir -pv /root/test &> /dev/null ');
mkdir("/root/test",0700);

Reply content:

system('mkdir -pv /root/test &> /dev/null ');
mkdir("/root/test",0700);

php's mkdir and the terminal's mkdir
are definitely the same thing in theory, but PHP must have done it

<code>多个系统的兼容,以及给了一些默认值,权限等等。</code>
Copy after login
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