[SOLVED]Class / headers problem
Posted: Thu Mar 23, 2006 2:42 pm
Hi,
I'm trying to get my head around using classes. I'm playing around with the example on
viewtopic.php?t=8873.
Everything works fine except when I try and use a header() redirect - I get the error message saying that output has already started (as happens if something is echoed before the header()). It says that the output started in the class file - even if I comment every in the class out, it still does it.
Can anyone tell me why this is happening?
Does it have anything to do with instantiating the class, does that start an output?
thanks
rj
I'm trying to get my head around using classes. I'm playing around with the example on
viewtopic.php?t=8873.
Everything works fine except when I try and use a header() redirect - I get the error message saying that output has already started (as happens if something is echoed before the header()). It says that the output started in the class file - even if I comment every in the class out, it still does it.
Can anyone tell me why this is happening?
Does it have anything to do with instantiating the class, does that start an output?
thanks
rj