Menu

#12 Warning: Cannot modify header information - headers

examserver-1.0.1
open
Module (7)
6
2007-06-12
2007-06-12
No

Warning: Cannot modify header information - headers already sent by (output started at C:\apache2triad\htdocs\Examserver\Test.php:38) in C:\apache2triad\htdocs\Examserver\Test.php on line 184

if your server does support output buffering, then it may be that the buffer is being dumped prematurely before you're sending your headers. This could be happening if you're using flush() or ob_flush() before you use header().

When you use the header() function, you should always check if headers have been sent or not.

The above has to be implemented to avoid the warnings in some system.

Thanks for sandesh magdum to identify this problem

Discussion


Log in to post a comment.