CodeIgniter Forums
How to Clear Headers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How to Clear Headers (/showthread.php?tid=31666)



How to Clear Headers - El Forum - 06-27-2010

[eluser]rajeshkumar[/eluser]
Hi All,
How to Clear Headers.

Can any one help me.


How to Clear Headers - El Forum - 06-28-2010

[eluser]danmontgomery[/eluser]
As far as I know, headers are sent immediately, not buffered, so the only way to 'clear' them is to reload the page


How to Clear Headers - El Forum - 06-28-2010

[eluser]pickupman[/eluser]
noctrum is correct, the only way is to reload the page. If you are getting a "headers already sent error", you have whitespace above a php tag or below a php tag.

What's your reason for needing this function?