Re: How to count transfered kBytes in File-Download
| From: | Michelle Konzack | Date: | Sun, 04 Jan 2009 17:17:20 +0000 |
| Subject: | Re: How to count transfered kBytes in File-Download | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285435@lists.php.net to get a copy of this message | ||
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)