我一直在使用PHP脚本将数据从我的数据库(mysql)导出到XLS文件。使用PHP导出XLS文件时的Google Chrome错误
尽管文件导出过程在Firefox和IE上运行良好。
尝试使用Google Chrome进行导出时出现错误。
谷歌Chrome的错误是
Duplicate headers received from server
The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.
Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION): Multiple distinct Content-Disposition headers received. This is disallowed to protect against HTTP response splitting attacks.
我需要在此方面的援助。
感谢
HTTP响应头有问题。使用[Fiddler](http://fiddler2.com)捕获HTTP头并将其发布到此处。 – flowfree
发生在我身上。通过从文件名中删除逗号来修复它 –
另一个答案改变'header(“Content-Disposition:attachment; filename = {$ file}”);'to header(“Content-Disposition:attachment; filename = \”{$文件} \“”);' –