Re: Re: old guy newbie needs some help

From: Date: Sun, 18 Jul 2004 20:30:15 +0000
Subject: Re: Re: old guy newbie needs some help
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-190934@lists.php.net to get a copy of this message
On Mon, 19 Jul 2004 01:41:49 +0800 Jason Wong <php-general@gremlins.biz> 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

« previous php.general (#190934) next »