Page 1 of 1

header problem

Posted: Sun Mar 29, 2009 7:05 am
by BayPhilip
Sorry for silly question but I really can't find solution anywhere.

I had a message from server "Cannot modify header information - headers already sent by". I searched using google and found out that I should remove my <head></head> tag and write my php code at the begging of file. I done it. So now my index.php don't have <head></head> and it begins with <?php header('Content-Type: text/html; charset=utf-8'); ?>, but I keep getting this message. Any help will be good. Thank you in advance.

Sorry for bad English.

Re: header problem

Posted: Sun Mar 29, 2009 12:37 pm
by tech603
The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).

This link also provides a lot more explanation on this subject.
http://www.geeklog.net/faqman/index.php?op=view&t=38

Hope that helps