我試圖運行在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;