note 102436 added to function.setcookie

From: Date: Mon, 14 Feb 2011 13:05:49 +0000
Subject: note 102436 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-176978@lists.php.net to get a copy of this message
I've been pulling my hair for a couple of minutes (read: hours) and finally figured out why setcookie in my case, returned the "headers already sent"-error: The file in question was orignally saved as ANSI in Notepad and worked flawlessly, but when saved with UTF-8-encoding, it didn't work. So after trying phpDesigner 7, I was able to both save the file in UTF-8 AND remove the BOM (byte-order-mark which is output BEFORE the cookie is set and thereby fails everything). ---- Server IP: 69.147.83.197 Probable Submitter: 188.180.135.140 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/102436 Del: integrated -- https://master.php.net/note/delete/102436/integrated Del: useless -- https://master.php.net/note/delete/102436/useless Del: bad code -- https://master.php.net/note/delete/102436/bad+code Del: spam -- https://master.php.net/note/delete/102436/spam Del: non-english -- https://master.php.net/note/delete/102436/non-english Del: in docs -- https://master.php.net/note/delete/102436/in+docs Del: other reasons-- https://master.php.net/note/delete/102436 Reject -- https://master.php.net/note/reject/102436 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176978) next »