mkdir() not working

前端 未结 8 2130
日久生厌
日久生厌 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:32

    Have you tried with the shortest test possible?

    mkdir('directory',0777);

    If this does not work I would try creating with a standard CHMOD like 0755 (this is a totally random guess, maybe the server won't allow creating 0777 via PHP)

    if this don't work I would say the server probably need different setup / php doesn' thave the writting right on folder, maybe you could ask your host provider?

提交回复
热议问题