Re: Traffic throttling
| From: | Stuart | Date: | Tue, 21 Jul 2009 15:39:30 +0000 |
| Subject: | Re: Traffic throttling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295620@lists.php.net to get a copy of this message | ||
2009/7/21 Michelle Konzack <linux4michelle@tamay-dogan.net>:
> since I have not the file store in my webspace for security reason, I
> use a php5 script to push it out. It even support "resumeing".
>
> some times ago, there was someone who told me to send out the files in
> chunks of, e.g. 1 kByte, which let me know to count the REAL traffic a
> client produce...
>
> OK, now the script works perfectly and I am able to delay the sending
> between two chunks, but what I need is a milisecond timer, because 1s is
> definitively to long.
>
> Is there something in php5 I can use?
http://php.net/usleep
-Stuart
--
http://stut.net/