mkdir() not working

前端 未结 8 2151
日久生厌
日久生厌 2021-02-19 23:08

My code

mkdir(\"/some/absolute/path\",0777);

and

mkdir(\"relative/path\", 0777);

is not working, safe mode is

8条回答
  •  一个人的身影
    2021-02-19 23:12

    If anyone gets stuck with this problem.. there's one answer I can give you that I spend 2 hours on finding.. I tried with using a full path, and "../mydirectoryname".

    Try using:

    mkdir("./mydirectoryname", 0777, true);
    

    Instead of..

    mkdir("../mydirectoryname", 0777, true);
    

提交回复
热议问题