Forum Moderators: coopster

Message Too Old, No Replies

Clear page headers

How do I do this...

         

Mr Anonymous

5:24 am on Jul 22, 2004 (gmt 0)

10+ Year Member



Is there a command in PHP to clear page headers. For example, say I have allready outputted some page content, but then later on in the same output I want to write a cookie; I get the error "Cannot modify header information - headers already sent by - *blahblahblah*". Is there a way to clear or reset the page headers so that I can set my cookie?

------------
Thanks in advance...

jatar_k

6:05 am on Jul 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



once they're sent they're sent but

You could use Output Control Functions [ca3.php.net]