note 83916 added to function.readfile
| From: | william | Date: | Wed, 18 Jun 2008 11:59:24 +0000 |
| Subject: | note 83916 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140563@lists.php.net to get a copy of this message | ||
Response to : antispam [at] rdx page [dot] com
20-Sep-2005 02:14 - Regarding the bod_bw apache module for limiting download speed and readfile;
If you use readfile to, say, pseduo stream mp3's or such, you can, at least with mod_bw 0.7,
specify the php file that handles the readfile and limit bandwidth that way.
Example VirtualHost;
<VirtualHost *:80>
BandwidthModule On
ForceBandWidthModule On
LargeFileLimit theStreamFile.php 1 25000
...
</VirtualHost>
This would throttle all files that gets sent via theStreamFile.php to 25 kb/sek. Works like a champ.
Tested on CentOS 5.
----
Server IP: 64.71.164.2
Probable Submitter: 81.232.79.160
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- https://master.php.net/note/edit/83916
Del: integrated -- https://master.php.net/note/delete/83916/integrated
Del: useless -- https://master.php.net/note/delete/83916/useless
Del: bad code -- https://master.php.net/note/delete/83916/bad+code
Del: spam -- https://master.php.net/note/delete/83916/spam
Del: non-english -- https://master.php.net/note/delete/83916/non-english
Del: in docs -- https://master.php.net/note/delete/83916/in+docs
Del: other reasons-- https://master.php.net/note/delete/83916
Reject -- https://master.php.net/note/reject/83916
Search -- https://master.php.net/manage/user-notes.php