Why mkdir fails with recursive option set true?

断了今生、忘了曾经 提交于 2019-12-05 03:07:55

After some googling, I found the answer on php.net. It is all about serverino mount option. When I mounted folder with noserverino all problems were gone. Anyway thanks guys for trying to help!

You may try appending a slash character to your first parameter.

mkdir('./mnt/1/',0777,true);
D.B.U.

This is the right ways of creating directory :

mkdir('/test1/test2', 0777, true);

mkdir("test1/test2",0777,true);

So your error is probably on some of the missing lines.. Not in the way that you create the directories.

For more details you can check here : http://php.net/manual/en/function.mkdir.php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!