Re: [PHP] Download speed limit

2007-05-18 Thread clive
Sent: Thursday, May 17, 2007 6:55 PM Subject: Re: [PHP] Download speed limit On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. Have you tried

Re: [PHP] Download speed limit

2007-05-17 Thread Ovidiu Rosoiu
: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
Reale [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, May 18, 2007 2:34 PM Subject: Re: [PHP] Download speed limit limiting speed by using sleep in your script is a very bad idea. for a 350 MB file, with a 20 KB/s limit the script would take aprox. 5 hours. you can see how

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
: Thursday, May 17, 2007 6:10 PM Subject: Re: [PHP] Download speed limit Yes, it seems to be bad thing, but this limit is because the big files are non-critical, but I can't let them hammer the customer's connection, using all the bandwidth. The internet connection is slow (500kbps ADSL), and they have

Re: [PHP] Download speed limit

2007-05-17 Thread Greg Donald
On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. Have you tried something like this? ?php $file = '/opt/local/apache2/htdocs/test_file.txt';

Re: [PHP] Download speed limit

2007-05-17 Thread Rangel Reale
[EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, May 17, 2007 6:55 PM Subject: Re: [PHP] Download speed limit On 5/17/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does

Re: [PHP] Download speed limit

2007-05-17 Thread Chris
Rangel Reale wrote: Yes, I tried, this works, but I would like to control the send speed more, preferably via URL, as this programs will only be accessed by my desktop application, and I have full control of them. But, if there is no other way, this will be the way! Use the url parameter to

Re: [PHP] Download speed limit

2007-05-16 Thread Jim Lucas
Rangel Reale wrote: Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte counts for this example). To

Re: [PHP] Download speed limit

2007-05-16 Thread Rangel Reale
Between 90 and 350 MB. - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: Rangel Reale [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, May 16, 2007 6:41 PM Subject: Re: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need