Hello all,
Is it possible to find PHP tmp folder at run time?
I am uploading files and I am making use of:
$_FILES['upfile']['tmp_name']
However, one of the APIs I am making use of requires that I have to give the full file path of the uploaded file relative to my script! A bit annoying but it has to be done.
Any ideas on how I can do this?
EDIT
Currently. I am doing this, as I know how many levels to go up but I am sure the tmp folder can be at different locations for different servers.
$file = '../..'.$_FILES['upfile']['tmp_name'];
Thanks all