note 90637 added to function.session-start

From: Date: Fri, 01 May 2009 21:27:53 +0000
Subject: note 90637 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-154087@lists.php.net to get a copy of this message
@LaurenceJ44 The :2) part of the error is saying the problem is on line 2, not that session_start must be on line 1. session_start can be on line 500 so long as this is before outputting to the browser. You were setting your DOCTYPE which is outputting markup to the browser and then trying to call session_start. Moving it above was the right action to take, but I wanted to make sure it was clear that it being on line 1 had nothing to do with it so long as it was above your markup. ---- Server IP: 208.69.120.35 Probable Submitter: 171.159.194.10 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/90637 Del: integrated -- https://master.php.net/note/delete/90637/integrated Del: useless -- https://master.php.net/note/delete/90637/useless Del: bad code -- https://master.php.net/note/delete/90637/bad+code Del: spam -- https://master.php.net/note/delete/90637/spam Del: non-english -- https://master.php.net/note/delete/90637/non-english Del: in docs -- https://master.php.net/note/delete/90637/in+docs Del: other reasons-- https://master.php.net/note/delete/90637 Reject -- https://master.php.net/note/reject/90637 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154087) next »