Page 1 of 1

Header Error

Posted: Sun Oct 31, 2004 8:28 pm
by Daniela

Code: Select all

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\vitalhealth\salesclerks\area_salesclerks.php:2) in c:\inetpub\wwwroot\vitalhealth\salesclerks\area_salesclerks.php on line 74
I know this is a common problem. I've made sure the first thing on the page is the session initation and have checked for spaces.

What else could be the cause of the problem?

Thanks, Daniela.

Posted: Sun Oct 31, 2004 8:40 pm
by kettle_drum
Sending something to the user on or before line 2 in area_salesclerks.php:

(output started at c:\inetpub\wwwroot\vitalhealth\salesclerks\area_salesclerks.php:2)

Could be white space, tab, text....anything.

Posted: Sun Oct 31, 2004 9:40 pm
by rehfeld
any included files?

Posted: Mon Nov 01, 2004 7:10 pm
by Daniela
Yes my connection variables are stored in an include file.

Posted: Mon Nov 01, 2004 7:11 pm
by rehfeld
check that for whitespace or any other output as well

Posted: Mon Nov 01, 2004 7:11 pm
by Daniela
I've searched some forums and found some possible solutions to this problem.

- Okay, Thanks

Read this

Posted: Mon Nov 01, 2004 10:25 pm
by neophyte

Posted: Tue Nov 02, 2004 12:46 am
by rehfeld
Daniela wrote:I've searched some forums and found some possible solutions to this problem.

- Okay, Thanks

fyi, using output buffering is not the solution to this problem. yes it may work, but that is putting a band aid over it. that and it can be a sig performance hit depending on the site.