Home  >  Article  >  Backend Development  >  linux - The difference between using php's mkdir function and php using the system function to execute the mkdir command

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

WBOY
WBOYOriginal
2016-12-01 00:56:321343browse

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>
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