Page 2 of 2
Posted: Sun Jun 13, 2004 8:36 pm
by bla5e
Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\project3\admin.php:3) in c:\program files\apache group\apache\htdocs\project3\admin.php on line 214
Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\project3\admin.php:3) in c:\program files\apache group\apache\htdocs\project3\admin.php on line 214
Line 214:
i seem to always get this problem.. how do i fix?
Posted: Sun Jun 13, 2004 8:37 pm
by markl999
If you are getting error like "Warning: Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of <?php and ?>) and any (X)HTML. You can also use output buffering, see
http://php.net/outcontrol; See also
http://www.evilwalrus.com/articles.php?aid=15
Posted: Sun Jun 13, 2004 8:43 pm
by bla5e
ya well this is cannot send session cookie
Posted: Sun Jun 13, 2004 8:44 pm
by markl999
The same applies. You cannot have output before session_start();
Posted: Sun Jun 13, 2004 9:07 pm
by bla5e
nvm i got it