찾다

 >  Q&A  >  본문

php - 下载文件已损坏

用php做的下载系统,图片、doc等损坏看不了,而txt则在它本来内容的前面多出一下内容:
<pre>array(1) {
[0] =&gt; array(3) {
[&quot;id&quot;] =&gt; string(1) &quot;3&quot;
[&quot;filename&quot;] =&gt; string(17) &quot;4f3e434d7f57e.txt&quot;
[&quot;uptime&quot;] =&gt; string(19) &quot;2012-02-17 20:08:45&quot;
}
}
</pre><pre>string(17) &quot;4f3e434d7f57e.txt&quot;
</pre><pre>string(33) &quot;./public/upload/4f3e434d7f57e.txt&quot;
</pre>

是编码问题吗?

巴扎黑巴扎黑2897일 전449

모든 응답(2)나는 대답할 것이다

  • ringa_lee

    ringa_lee2017-04-10 13:12:30

    哪的debug信息没删吧

    회신하다
    0
  • 黄舟

    黄舟2017-04-10 13:12:30

    搜索代码中的var_dump,然后注释掉!

    회신하다
    0
  • 취소회신하다