note 88847 added to function.setcookie
| From: | paul at webtop-designs dot com | Date: | Tue, 10 Feb 2009 19:14:49 +0000 |
| Subject: | note 88847 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150460@lists.php.net to get a copy of this message | ||
If you are trying to send cookies and keep getting a message about headers already sent but you
cannot find where, check your files...a single space after the closing ?> in php is classed as
output and will cause this issue.
Zend Framework users will note the new technique and not closing your files at all...that is to
combat this same problem.
Make sure that ?> are the very last 2 characters of your file.
//erlin
----
Server IP: 208.69.120.35
Probable Submitter: 72.204.219.26
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/88847
Del: integrated -- https://master.php.net/note/delete/88847/integrated
Del: useless -- https://master.php.net/note/delete/88847/useless
Del: bad code -- https://master.php.net/note/delete/88847/bad+code
Del: spam -- https://master.php.net/note/delete/88847/spam
Del: non-english -- https://master.php.net/note/delete/88847/non-english
Del: in docs -- https://master.php.net/note/delete/88847/in+docs
Del: other reasons-- https://master.php.net/note/delete/88847
Reject -- https://master.php.net/note/reject/88847
Search -- https://master.php.net/manage/user-notes.php