PHPスクリプトを実行する前にクライアントにヘッダーを送信する方法は?
私のスクリプトは完了するまでに時間がかかり、クライアントはこの期間中に何も受け取りません。
<?
header("HTTP/1.1 200 OK");
header("Date: Thu, 23 Jun 2011 10:16:31 GMT");
header("Content-Type: application/octet-stream");
header("Content-Length: 12275768");
header("Accept-Ranges: bytes");
header('Content-Disposition: attachment; filename="Untitled-1.bmp"');
header("Content-Transfer-Encoding: binary");
header("Connection: close");
//Send headers now
//because my php script take many time to finish
//because it downloads a file from a remote server
.
.
.
?>