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
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.