<?php
include "function.php";
$account = findSomeFile();
$file_url = '/var/www/html/tvconfig/netflix/'.$account.'.zip';
echo $account;
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\"");
readfile($file_url);
?>
上記は私のPHPスクリプトです。ページをロードすると、ブラウザーにダウンロード プロンプトが表示されますが、ページにエコーはありません。readfile 関数の後にエコーを配置しようとしましたが、機能しません。