Re: How to count transfered kBytes in File-Download

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

 



Hello Jim and *,

Am 2009-01-02 21:12:58, schrieb Jim Lucas:
> $current_size = 0;
> while ( !feof($HANDLER) ) {
> 	$current_size += $buffer;
> 	echo fread($HANDLE, $buffer);
> }

This part is working now...  ;-)

But there is a problem:

IF the user interrupt the download, the  PHP  script  exit  immediately,
which mean, the database can nut be updated for the partial download.

Now I was searchin the downloaded php5 documentation where i have  read,
that one can set a variable, that the PHP5 script does NOT exit, if the
user interrupt the connection.

I need to set ths ONLY for this function, since otherwise it can have  a
very negative impact.

Can someone tell me, WHICH and HOW to set the variable?

Note:  I have only access to my VServer root not the PHP or OS
       installation even if I can read it from my php scripts...

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    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/>               <http://www.can4linux.org/>
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

<<attachment: signature.pgp>>


[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