PDA

View Full Version : header error


tonytz
06-28-2011, 04:37 PM
i get the following error while accessing my forum main directory:

Unable to add cookies, header already sent.
File: /public_html/forum/forum.php
Line: 1

This error is replicated by opening the forum.php file with notepad, and then save and upload the file WITHOUT making any editing (basically, the php code stays the same). Anyone know why this error occurs....given that the code is the same: what's causing this error?

any comment is appreciated!

Lynne
06-28-2011, 06:16 PM
When you save the file, you must save it as a plain text file. You also must make sure to not add any spaces at the top of the file.

tonytz
06-28-2011, 07:52 PM
i found out that notepad changed the encoding of the original file from ANSI to UTF8 so the the file was saved with some additional characters - not a plain save! anyways, problem solved