mkdir() not working

前端 未结 8 2129
日久生厌
日久生厌 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?

    0 讨论(0)
  • 2021-02-19 23:34

    You're missing quotes around the path name parameter.

    0 讨论(0)
提交回复
热议问题