PHP tmpfile() returns false

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

    tmpfile() returns false if it is unable to create the temporary file. Make sure your tmp folder is writable and try and check what sys_get_temp_dir() function returns.

提交回复
热议问题