Page 1 of 1

add header information

Posted: Tue Dec 17, 2002 2:07 pm
by jamal
Hi Guys,
Please I wondered if you can help me with this problem. Everytime I tried to run a code this is the error message I got.


Warning: Cannot add header information - headers already sent by (output started at /home/phpfreak.com/public_html/includes/popunder.php:21) in /home/phpfreak.com/public_html/quickcode.php on line 257

Warning: Cannot add header information - headers already sent by (output started at /home/phpfreak.com/public_html/includes/popunder.php:21) in /home/phpfreak.com/public_html/quickcode.php on line 258

What is the cause of this error. How can I solve it or avoid it from happening. Please give me a little tutorial to eat on this problem .
God Bless You Guys
Thanks

Posted: Tue Dec 17, 2002 2:23 pm
by Rob the R
If you haven't already, you should look at the sticky topic in this forum:
http://www.devnetwork.net/forums/viewtopic.php?t=1157
It addresses most of the header problems.

If you have looked at the topic and it does not apply to your problem, post some of your troublesome code, and I'm sure someone here will be able to help.

problem

Posted: Tue Dec 17, 2002 2:32 pm
by AVATAr
The problems is you echoed something before you send the headers

Posted: Wed Dec 18, 2002 4:41 am
by Takuma
Add "ob_start();" just after "<?php" and add "ob_end_flush();" at the end.