Re: Traffic throttling
| From: | דניאל דנון | Date: | Tue, 21 Jul 2009 15:40:38 +0000 |
| Subject: | Re: Traffic throttling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295621@lists.php.net to get a copy of this message | ||
I am not sure I understood you, But...
Use microtime(true/false) to get the time,
And usleep to sleep milliseconds
On Tue, Jul 21, 2009 at 6:31 PM, Michelle Konzack <
linux4michelle@tamay-dogan.net> wrote:
> Hello,
>
> 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?
>
> Thanks, Greetings and nice Day/Evening
> Michelle Konzack
> Systemadministrator
> Tamay Dogan Network
> Debian GNU/Linux Consultant
>
> --
> Linux-User #280138 with the Linux Counter,
> http://counter.li.org/
> ##################### Debian GNU/Linux Consultant #####################
> <http://www.tamay-dogan.net/> Michelle
> Konzack
> <http://www.can4linux.org/> c/o
> Vertriebsp. KabelBW
> <http://www.flexray4linux.org/>
> Blumenstrasse 2
> Jabber linux4michelle@jabber.ccc.de 77694 Kehl/Germany
> IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947
> ICQ #328449886 Tel. FR: +33 6 61925193
>
--
Use ROT26 for best security