Re: Re: HTTP_Download to track amount of bytes downloaded help

From: Date: Thu, 17 Mar 2005 10:37:56 +0000
Subject: Re: Re: HTTP_Download to track amount of bytes downloaded help
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18106@lists.php.net to get a copy of this message
Thanks for the reply Second thing: I am getting errors from refreshing the page after I cancel the download: Warning: fseek(): supplied argument is not a valid stream resource in C:\php\pear\HTTP\download.php on line 849 Warning: fread(): supplied argument is not a valid stream resource in C:\php\pear\HTTP\download.php on line 855 I am using firefox 1.01... i don't know if its firefox or not (since ie doesn't seem to have the error). I fixed it by adding @ in front of fseek and fread... would this have an effect on the performance? Thanks again Ken On Wed, 16 Mar 2005 21:59:50 +0100, Michael Wallner <mike@php.net> wrote: > Ken wrote: > > > I want to know if there is a way to know how much a user has > > downloaded with HTTP_Download. Is this the right place to ask of > > should I actually ask on the developer's list? > > You could try the following, which I maybe implement for 1.1: > > Add $sentBytes property. > Update $sentBytes property on every flush() call. > > Regards, > Michael > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#18106) next »