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:[EMAIL PROTECTED]]
> Sent: Monday, February 19, 2001 12:54
> To: Sascha Andres; [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]