Forum Moderators: coopster
I have the following error message.
"Cannot modify header information headers already sent by [...] include/header_php.php:253)"
I know very well what this message means but I can't find any blank space or any other outputs... By the way, header_php is my main include config file.
The funniest part is that:
A/ When I use setcookie at the last line of the include file (line 254), it works.
B/ And when I use setcookie just after calling the include (header.php), I get this message.
Rrrrr... So annoying!
Any help?
If I have something that needs to set a cookie for example I have a second header file included called header-cookies.php that is included in the header.php file. Try something out like that. Not sure what your setup is and it might just be way above my head. :-D
- John
<?php etc etc
and not
<?php etc etc
what happens is apache gets the blank space, then php kicks in, but its too late, apache has started processing the page
using output buffering, all the php is processed first then everything is sent to apache, rather than as and when it is called.
:-)