我试图运行在PHP以下PHP的exec和返回二进制
$测试= svn cat ....
现在$测试的输出基本上是由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;