I am creating image with imagejpeg php command and my question is how to access it when it is saved to tmp folder on the apache server?
I cannot use ../../tmp notation because for accessing it it eeded http protocol not file protocol. I tried with $_ENV and $_FILES variables but they are empty arrays.
How to access the upload folder with some php command, is it possible somehow?
you can use
renamefunction to move it whenever you need to be, in the webroot if you want to make it public.Regarding, the
$_ENVand$_FILES, the first one is used to store environment variables PATH etc, the second is used when a files is uploaded. You can review this here and here.