what's [tmp_name] default path
-----upload.php <form action=upload_do.php ....> ......
----upload_do.php copy($FILES['img']['tmp_name'], "/path/".$FILES['img']['name'])
it can be upload to my assign path. But what the default path(['tmp_name']) is ?
The Manual Files will by default be stored in the server's default temporary directory, unless another location has been given with the upload_tmp_dir directive in php.ini. The server's default directory can be changed by setting the environment variable TMPDIR in the environment in which PHP runs. Setting it using [man]putenv()[/man] from within a PHP script will not work. This environment variable can also be used to make sure that other operations are working on uploaded files, as well.