http_throttle
http_throttle — HTTP 抑止処理
説明
void http_throttle ( [double sec [, int bytes = 40960]] )http_send() API で使用する、throttle delay および送信バッファサイズを指定します。 基本的な抑止機構を提供します。 これにより、現在のプロセスがエンティティを完全に送信できるようになるでしょう。
パラメータ
- sec
-
各チャンクが送信された後に待機する秒数。
- bytes
-
チャンクの大きさ (バイト単位)。
例
例 827. http_throttle() の例約 20 kbyte/秒 でファイルを送信します。
<?php
// ~ 20 kbyte/s
# http_throttle(1, 20000);
# http_throttle(0.5, 10000);
# http_throttle(0.1, 2000);
http_send_file('document.pdf');
?>
?>
Weblioに収録されているすべての辞書からhttp_throttleを検索する場合は、下記のリンクをクリックしてください。

- http_throttleのページへのリンク