---- Original Message ----
> From: Kim Madsen <php....@emax.dk>
> To: php-general@lists.php.net
> Sent: Sun, October 4, 2009 9:10:36 AM
> Subject: Re: [PHP] Header problem
> 
> Hi kranthi
> 
> kranthi wrote on 2009-10-03 16:21:
> > Thats a lot of headers to read..
> > At a first glance I can see that you did not specify a content-length
> > header. this is a must and must be equal to the size of the file in
> > bytes
> 
> I've noticed that too, but it's impossiple to determine the length of the 
> zipfile, when creating the file in memory.
> 
> Instead I'm now writing the file to disk and uses filesize on the zipfile to 
> get 
> the length for Content-Length, then I use readfile("zipfile.zip") instead of 
> echo $zip->file(); But the result is still the same :-/
> 
> Kind regards
> Kim
> 
> -- PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

If you want to take advantage of chunked-transfer encoding, you can not specify 
'content-length'.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to