【发布时间】:2014-04-30 18:37:06
【问题描述】:
什么
Mobile Andriod 2.3 默认浏览器
问题
我让 PHP 提交标题来尝试下载 PDF 和文本文件。电话看起来像是在下载文件,但它显示"<Untitled>" 并保持在进行中。
其他
我在同一部手机上的 Opera 中注意到文件下载。每个桌面浏览器也可以正常工作
标题
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Cache-Control: public');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . $FileSize);
header('Content-Disposition: attachment; filename="' . strtoupper( $FullFileName ) . '"');
header('Content-Transfer-Encoding: binary');
echo($Content);
【问题讨论】:
标签: php android apache http-headers