When I run this code from /test
route, it works well. But when I run it from job or command it fails(fopen cannot find the file). What is the difference of these two ways to run the method?
$path = 'tempdir1/tempdir2' /* works from the `/test` route, fails from the job class */
fopen($path, 'r');