With $_Files I can find the original filename when I use a form to upload a file.
$OriginalFileName = $_FILES['userfile']['name'];
But it just gives me the filename. How do I find the Path to this file?
The path on the server? It's specified in php.ini under upload_tmp_dir.
If you mean the path from the user's computer, you can't.
How do you get the upload_tmp_dir?
I tried: upload_tmp_dir $upload_tmp_dir $_SERVER['upload_tmp_dir']
Isn't it a superglobal?
I can see it is with the PHP Core when I do a PhPInfo(). How do you get to those?
Newbie question.
Sorry.
[man]ini_get[/man] and [man]ini_set[/man] to change it.