RE: [PHP] Session support in PHP (buffering output to browser)
| From: | ..s.c.o.t.t.. | Date: | Tue, 20 Feb 2001 01:53:17 +0000 |
| Subject: | RE: [PHP] Session support in PHP (buffering output to browser) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40662@lists.php.net to get a copy of this message | ||
there was an awesome article on phpbuilder about buffering output,
controlling when things got to the browser... so that you could
set cookies/headers anywhere in your script (or, as he talks about,
gzip content on the fly beofre outputting it to the browser)
http://phpbuilder.com/columns/argerich20010125.php3
PS: for anyone who doesnt know about phpbuilder.com yet,
it is a very very good site, full of very very good information
> -----Original Message-----
> From: Kath [mailto:kath@kathweb.net]
> Sent: Monday, February 19, 2001 12:54
> To: Sascha Andres; php-general@lists.php.net
> Subject: Re: [PHP] Session support in PHP
>
>
> Make sure there are no lines (except a <?php of course) above your
> session_start(), INCLUDING blank lines.
>
> Example that will work:
> <?php
> session_start();
> ?>
> <HTML>
> yadda yadda yadda etc etc etc
>
> Example that will not work:
> <?php
>
> session_start();
> ?>
> <HTML>
> yadda yadda yadda etc etc
>
> Hope this helps,
> Kath
>
> ----- Original Message -----
> From: "Sascha Andres" <php@keatec.com>
> To: <php-general@lists.php.net>
> Sent: Monday, February 19, 2001 2:38 PM
> Subject: [PHP] Session support in PHP
>
>
> > hi,
> >
> > when doing a session_start() followed by session_register(...)
> > before the html header the first call stops with the error
> > 'html header already written'. how can i prevent the html header
> > to be written until the session_start() is called?
> > sascha
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>