Author Topic: Session (Header) Problem  (Read 2459 times)

0 Members and 1 Guest are viewing this topic.

Offline ssrnsv

  • Pre-Newbie
  • Posts: 9
    • View Profile
Session (Header) Problem
« on: January 13, 2009, 04:57:29 AM »
Hi all,

I am getting the following warning/error message for my site when I open my web site for the first time.

Warning: Cannot modify header information - headers already sent by (output started at \Index.php:1) in \includes\sessions.php on line 101

Next when I click on the Home button it is not displaying the same message.

what will be the problem? please help.
« Last Edit: January 21, 2009, 05:25:52 AM by ssrnsv »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Session (Header) Problem
« Reply #1 on: January 13, 2009, 05:34:02 AM »
Hello and welcome to 4images forum.


If you save your files in UTF8/UTF16 (Unicode) encoding, you must make sure that the editor doesn't add so called BOM to the file. If editor doesn't have such feature to add or not "BOM", then change the editor ;)
There is no need save php files in other encoding then ACSII, unless its a language file.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)