search

Home  >  Q&A  >  body text

为什么我设置了php.ini的临时上传目录, 然后我上传文件显示成功了,可是什么临时文件夹里没有?

为什么我设置了php.ini的临时上传目录, 然后我上传文件显示成功了,可是什么临时文件夹里没有?

汪汪汪汪2994 days ago1097

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:05:49

    Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese Website Questions and Answers-Why did I set up the temporary upload directory of php.ini, and then my uploaded file showed that it was successful, but there was no temporary folder? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-20 11:39:55

    估计你是用move_uploaded_file()函数上传,上传成功的话系统会自动删除临时文件夹中临时文件。当然你也可以用copy()函数上传,上传成功后临时文件仍然存在,为了避免占用空间,一般还要配合unlink()函数手动删除临时文件。

    reply
    0
  • Cancelreply