- use zend_hash_find() instead of FOREACH in http_match_request_header() (don't ask)
[m6w6/ext-http] / docs / examples / Bandwidth_Throttling.php
1 <?php
2 // send 5000 bytes every 0.2 seconds, i.e. max ~25kByte/s
3 HttpResponse::setThrottleDelay(0.2);
4 HttpResponse::setBufferSize(5000);
5 HttpResponse::setCache(true);
6 HttpResponse::setContentType('application/x-zip');
7 HttpResponse::setFile('../archive.zip');
8 HttpResponse::send();
9 ?>