>>103
レスありがとうございます。

しかし、どうもうまくいかないので、
以下のような感じで極力シンプルなコードにして
直接このスクリプトをブラウザから呼んでみたのですが、
hoge2.phpには飛ぶのですが、ファイルが出力されません。
(header("Location: index.php");をコメントアウトすると、正常に処理されます)
私、何か根本的な勘違いをしているような気がするのですが
いかがでしょう?

↓↓↓↓↓↓↓↓
<?php
$content_length = filesize("○○○○○");
header("Location: hoge2.php");
header("Content-Disposition: attachment; filename=○○○○○");
header ("Content-Transfer-Encoding: binary");
header("Content-Length: ".$content_length);
header("Content-Type: application/octet-stream");
readfile("○○○○○");
?>