mkdir() says theres no such directory and fails?

后端 未结 7 2038
逝去的感伤
逝去的感伤 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:48

    Probably the real error was that he forgot an extra apex.

    This:

    mkdir("images/listing-images/rent/'.$insertID.");
    

    Inside:

    /'.$insertID."
    

    Correct Version:

    /".$insertID
    

    Extended Correct Version:

    mkdir("images/listing-images/rent/".$insertID);
    

提交回复
热议问题