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

From: Date: Thu, 17 Mar 2005 10:43:27 +0000
Subject: Re: Re: HTTP_Download to track amount of bytes downloaded help
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18108@lists.php.net to get a copy of this message
Hi Ken, you wrote: > 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? Yes a tiny bit, which should be neglible for downloads... However, the HTTP headers you receive when this happens may help a lot (which shouldn't be too hard to discover with livehttpheaders). Does the same error occur if you hit "Go" instead of "Refresh"? Thanks, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.general (#18108) next »