[RESOLVED] Can't Set Cookie
I have a set cookie function supposed to run... But it keeps screaming:
Now, I know what that means. Problem is, I haven't sent any output before using this. Heck, I even tried using a dummy setcookie function at the first line of index.php and it said the same. What's going on?
Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\www\Faction\index.php:1) in D:\xampp\htdocs\www\Faction\functions\do.php on line 11
Do you have any extra whitespace at the beginning of the file? Are you including any other files which might have whitespace? If all else fails do an ob_start and flush.
Nope. And buffering doesn't work ):
Make sure your scripts are saved either as plain ASCII text or as UTF-8 without the BOM (byte order mark). Otherwise that BOM will be output before the <?php tag no matter what you do.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
You, my dear sir, are frickin' brilliant. Thank you!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)