PHP create folder if it does not exist

前端 未结 4 704
无人及你
无人及你 2021-01-19 18:31

I am creating a medium size application.

This application consists of a lot of products.

Now these products have many images (one product can have 5 - 6 imag

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-19 18:35

    It's always a good idea too add the magic constant __DIR__ to the file or directory path. ( __DIR__ gives out the path to the directory in which your script is located). In the errormessages "APP" is highlighted in a different colour than the path name. This could be a hint that the path cannot be located.

提交回复
热议问题