【发布时间】:2010-10-20 19:47:31
【问题描述】:
我正在尝试在 php 中运行以下内容
$test = svn cat ....
现在$test的输出基本上是一个svn返回的二进制文件。如何使这个二进制文件可供下载。我试图提出以下内容:
$test = `svn cat ....`
header("Content-Disposition: attachment; filename=" . urlencode($filename));
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Description: File Transfer");
echo $test;
【问题讨论】: