Re: Traffic throttling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxx           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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux