On Mon, 19 Jul 2004 01:41:49 +0800 Jason Wong <[EMAIL PROTECTED]>
wrote:
> Not strictly correct. Use session_start() *before* *any* *output* - the 
> archives keep pointing this out. A quick search on the error message
> "cannot send headers" will lead to loads of answers. Yet people still keep
> asking this question over and over.

Some of the newbies can't really help it. It's somewhat non-intuitive to
realise that session_start() will issue send HTTP headers, which in turn must
be issued before regular output.

Personally, I'd suggest always starting a script with ob_start(), this way
the whole load of problems created by HTTP headers dissapears.

-- 
Skippy - Romanian Web Developers - http://ROWD.ORG

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to