|  | Posted by BearItAll on 06/29/05 11:21 
On Wed, 29 Jun 2005 09:04:35 +0200, Marin wrote:
 > Hello,
 > I'm using:
 > Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.0.4 MySQL 4.1.12
 > DocMan1.3RC1 (PHP based document manager)
 >
 > I'm having following problem: file uploads OK, but problem occurs when I
 > try to download or view the file. After some innvestigation, I found out
 > that only first 2MB od data is actually downloaded (exactly 2.000.000
 > bytes) resulting in corrupted files. (uploaded files are OK!) I couldn't
 > find that limit anywhere in my system. If the original filesize is under
 > 2M, files are downloaded and/or viewed correctly.
 > Firefox, Opera, IE6 - they all behave in the same way. Win98, 2000, XP -
 > the same
 >
 > If I manualy fetch the files (bypassing DOCman), downloads is OK!
 >
 > What am I missing here? I'm pretty sure it's PHP related, but I'm running
 > out of ideas where to look. Pls. help,
 > //Marin
 
 Could this be a limit imposed by your ISP rather than your code? With it
 being a solid 2000000 it seems possible. I haven't come across a php limit
 communicating data across two servers in my work place and these
 streams are much larger than 2M. I did this as an experiment to see if I
 could come up with a better way to update remote servers, so I was working
 with G byte tar-zip balls. (turned out to be far too slow for this purpose).
 
 If it is that, I was going to suggest a way of breaking the file into
 blocks with the file functions, but I am not sure how an ISP counts these
 limits, it could be a limit in a single stream or a limit within a time
 period.
  Navigation: [Reply to this message] |