我有这个代码来下载文件。
header("Pragma: no-cache");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Content-Disposition: attachment; filename=\"도망자_PLAN_B.English.xml\"" );
header('Content-Type: "application/xml"; charset="utf-8"');
readfile('http://xxx.xxx.x.xx/www/path/to/file/2015/12/도망자_PLAN_B.English.xml');
我下载文件并打开它后发现此错误而不是xml代码
<br />
<b>Warning</b>: readfile(http://xxx.xxx.x.xx/www/path/to/file/2015/12/도망자_PLAN_B.English.xml): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
in <b>C:/path/to/file/functions.php</b> on line <b>452</b>
我知道病房도망자
的问题
如何下载具有相同名称的文件?