PHP tmpfile() returns false

前端 未结 4 1992
情书的邮戳
情书的邮戳 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:31

    First, enable all PHP warnings to see if it is telling you something.

    Second, check your temp folder and make sure PHP has write access to it. It's possible that certain "safe mode" restrictions (base dirs, etc) are preventing access.

提交回复
热议问题