mkdir() says theres no such directory and fails?

后端 未结 7 2047
逝去的感伤
逝去的感伤 2020-12-16 09:07

Im likely doing something very simply wrong, but when I try to make a directory (using a variable of an insert just performed as the last folder name), I get the error:

7条回答
  •  情歌与酒
    2020-12-16 09:41

    in my case $insertID was generated from some data as string by concatinating

    $insertID=$year.$otherId;
    

    I simple rewrote code like this and error disappeared:

    $insertID=(int)($year.$otherId);
    

提交回复
热议问题