note 101772 deleted from function.session-start by danbrown

From: Date: Mon, 10 Jan 2011 18:32:38 +0000
Subject: note 101772 deleted from function.session-start by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175610@lists.php.net to get a copy of this message
Note Submitter: jballard at natoga dot com ---- In response to milanzivanovic at gmail dot com's "Headers already sent" error, this is because there has already been data sent to the browser prior to the session_start() call. The easiest way to get around this error is to use output buffering (a simple call to ob_start() will fix it, so long as it is the FIRST call made on the page).

« previous php.notes (#175610) next »