Home > Backend Development > PHP Tutorial > 下载文件已损坏

下载文件已损坏

WBOY
Release: 2016-06-06 20:52:11
Original
1192 people have browsed it

用php做的下载系统,图片、doc等损坏看不了,而txt则在它本来内容的前面多出一下内容:

array(1) {<br>
[0] => array(3) {<br>
["id"] => string(1) "3"<br>
["filename"] => string(17) "4f3e434d7f57e.txt"<br>
["uptime"] => string(19) "2012-02-17 20:08:45"<br>
}<br>
}<br>
Copy after login
Copy after login
string(17) "4f3e434d7f57e.txt"<br>
Copy after login
Copy after login
string(33) "./public/upload/4f3e434d7f57e.txt"<br>
Copy after login
Copy after login

是编码问题吗?

回复内容:

用php做的下载系统,图片、doc等损坏看不了,而txt则在它本来内容的前面多出一下内容:

array(1) {<br>
[0] => array(3) {<br>
["id"] => string(1) "3"<br>
["filename"] => string(17) "4f3e434d7f57e.txt"<br>
["uptime"] => string(19) "2012-02-17 20:08:45"<br>
}<br>
}<br>
Copy after login
Copy after login
string(17) "4f3e434d7f57e.txt"<br>
Copy after login
Copy after login
string(33) "./public/upload/4f3e434d7f57e.txt"<br>
Copy after login
Copy after login

是编码问题吗?

哪的debug信息没删吧

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template