> 3. Lets add session feature
> -----------------------
>
> <?php
> session_start();
> print "bla..bla..";
> ?>
> -----------------------
> Ops.. we got an error here... !!!

That's not a bug.

session_start() wants to send a cookie to the client. But if output has
already started (the blank line before '<?php' caused output to be
started), the session cookie can't be sent, nor can the cache limiter. So
you'll get an error because it can't send headers as it wants to.

Chris


-- 
PHP Development 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