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]

Reply via email to