http://timmytheterror.com/home/music_detail/233から音楽ファイルをダウンロードしようとしているとき
ユーザー名でログイン: amar パスワード: 123456 ダウンロードを開始しますが、Apache は他の要求の処理を停止します。ダウンロードが完了するまで、他のページに移動できません。ダウンロードする私のコーディングは
$path = base64_decode($path); $id = base64_decode($id);
$file_path= "http://timmy-the-terror.s3.amazonaws.com/".$path;
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"".$path."\"");
header("Cache-Control: public");
header("Location: $file_path");
readfile($file_path);
別のウィンドウで開きますが、親ウィンドウが応答しなくなります。