How do I get the PHP Uploads directory?

后端 未结 3 1030
予麋鹿
予麋鹿 2021-02-14 04:03

I have uploaded a file using HTML / PHP and following is the print_r() of the $_FILES[\'file\'] array:

Array
(
    [name] => Chrysanthemum.jpg
    [type] =>         


        
3条回答
  •  时光说笑
    2021-02-14 04:49

    $tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();
    

提交回复
热议问题