Re: Transparent session handling
| From: | Michael Stearne | Date: | Thu, 08 Jun 2000 23:49:06 +0000 |
| Subject: | Re: Transparent session handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1352@lists.php.net to get a copy of this message | ||
Peter Kovacs wrote:
> On Thu, 8 Jun 2000, Michael Stearne wrote:
>
> > I was told the difference is negligible, but it it is a big page and takes a long
> > time to process (10 seconds?) then the user doesn't have anything on the screen
> > for 10 seconds and gets everything at once. This might be annoying to the user,
> > but I don't know if performance suffers.
> >
> > I don't see why cookies or no cookies would matter for output buffering. Why do
> > you say that?
> >
> > Michael
>
> The difference is, the output doesn't need to be buffered if the user has
> cookies enabled (the bug doesn't happen when the sid is passed as a
> cookie).
>
Oh, but there are other reasons to use it, like if you want to do header or MIME
stuff.
>
> There doesn't appear to be any documentation on the output buffering. Is
> there any way to do an incremental flush? Rather than just one big flush
> at the end?
>
ob_get_contents() I believe returns the contents right now. I saw a little
documentation on it somewhere but I forget where, php.net or zend.com
Michael