Reputation: 2773
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?
Upvotes: 0
Views: 601
Reputation: 27323
you can use rename
function to move it whenever you need to be, in the webroot if you want to make it public.
Regarding, the $_ENV
and $_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.
Upvotes: 1