调试用ini_set函数来修改upload_tmp_dir的值,发现不会成功。
在网上搜索一下,答案如下:
No, because by the time it executes the ini_set you've already uploaded the file. This will need to be set in php.ini, or your webserver config.
http://www.reddit.com/r/PHP/comments/1c87xk/can_i_use_ini_set_to_set_the_value_of_upload_tmp/