July 22nd, 2000, 12:16 AM
I had below error on my page:
Warning: Cannot add header information - headers already sent by (output started at functions.php:1) in /home/victor/www/cart_action.php on line 89
cart_action.php is a php file without interface but just doing re-direction using Header().
functions.php is a file contain inside cart_action.php which do not have any interface but contain several functions written by me.
This happen suddenly, and I am very sure that I didn't output or echo anything before the header(), what is the possible problem like?
July 22nd, 2000, 12:32 AM
Don't put any space before your php deliminator(ie,..'<?')..That is why it's showing the error message...
it should be..
"The fear of the LORD is the beginning of knowledge..."
July 22nd, 2000, 01:46 AM
Hi, thanks for the help.
But I already put as "<?php" without any space.
If I combine 2 scripts together, then everything works fine. -_-....
Any suggestion on that?
July 22nd, 2000, 01:53 AM
is the php script planted after any html tags?
try adding the php script before any html tags.. such as..
from what i know, headers only work if they are called before the <head> tag, thats why the error code had the word headers already sent by..
kinumedia, web developer
July 22nd, 2000, 01:59 AM
Thanks, but these 2 scripts do not contain any html tag, just the php code, I already check the code for any possible outputstream, but seems like I can't found any. Any suggestion on that?
July 22nd, 2000, 07:47 AM
You have some whitespace either before the <? or after ?> in the included file