On Fri, 16 Jun 2000, Vivek Khera wrote: > The other alternative is to generate your entire page as a string, get > the string's length() and print that as your content-length header. This is what I do, for two reasons. First, most browsers give more information to the user if you supply this, in the form of a progress bar during downloads. Second, if anything goes wrong during processing the request I want to send out a user-friendly error page. This is only possible if you haven't sent any output yet. Incidentally, the $r->print() method conveniently lets you pass the string you want to send by reference. - Perrin
- Slightly OT - Content-length Jim Serio
- Re: Slightly OT - Content-length Vivek Khera
- Re: Slightly OT - Content-length Frank Wiles
- Re: Slightly OT - Content-length Jim Serio
- Re: Slightly OT - Content-length Vivek Khera
- Re: Slightly OT - Content-length Jim Serio
- $r->print(\$var) (WAS: Re: Slightly OT ... Perrin Harkins
- $r->print(\$var) (WAS: Re: Slightl... Ken Williams
- $r->print and references: Was RE:... John Hughes
- Re: $r->print and references: ... Matt Sergeant
- RE: $r->print and referenc... John Hughes
- RE: $r->print and referenc... Shane Nay
- RE: $r->print and referenc... John Hughes
- Re: $r->print and references: ... Perrin Harkins