note 102436 deleted from function.setcookie by cmb

From: Date: Sun, 10 Nov 2019 12:49:16 +0000
Subject: note 102436 deleted from function.setcookie by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213003@lists.php.net to get a copy of this message
Note Submitter: jacobkamphansen at gmail dot com ---- 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).

« previous php.notes (#213003) next »