PHP tmpfile() returns false

前端 未结 4 1991
情书的邮戳
情书的邮戳 2020-12-10 17:42

I\'ve got an image upload script which was previously working. It\'s now broken, and I\'ve traced the problem down to one line:

$temp = tmpfile();
// $temp          


        
4条回答
  •  暖寄归人
    2020-12-10 18:15

    It might be a problem with permissions. Use sys_get_temp_dir() to see where the temp file will be created and make sure php has access to write there.

提交回复
热议问题