尝试这个:
if (!file_exists('path/to/directory')) { mkdir('path/to/directory', 0777, true);}请注意,这
0777已经是目录的默认模式,并且仍可以被当前的umask修改。

尝试这个:
if (!file_exists('path/to/directory')) { mkdir('path/to/directory', 0777, true);}请注意,这
0777已经是目录的默认模式,并且仍可以被当前的umask修改。