string(1) "3"["filename"] => string(17">
时间:2021-07-01 10:21:17 帮助过:15人阅读
array(1) {
[0] => array(3) {
["id"] => string(1) "3"
["filename"] => string(17) "4f3e434d7f57e.txt"
["uptime"] => string(19) "2012-02-17 20:08:45"
}
}
string(17) "4f3e434d7f57e.txt"
string(33) "./public/upload/4f3e434d7f57e.txt"
是编码问题吗?
用php做的下载系统,图片、doc等损坏看不了,而txt则在它本来内容的前面多出一下内容:
array(1) {
[0] => array(3) {
["id"] => string(1) "3"
["filename"] => string(17) "4f3e434d7f57e.txt"
["uptime"] => string(19) "2012-02-17 20:08:45"
}
}
string(17) "4f3e434d7f57e.txt"
string(33) "./public/upload/4f3e434d7f57e.txt"
是编码问题吗?
哪的debug信息没删吧
搜索代码中的var_dump,然后注释掉!