1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

session_start() problem

Discussion in 'PHP' started by viron86, Jan 20, 2010.

  1. #1
    i am getting following warning after hosting all file in hostmonster

    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent 
    
    Code (markup):
    i have written session_start() function at the first line and this warning doesnt comes up on localhost
     
    viron86, Jan 20, 2010 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Most likely there is some text before the <? or <?php at the beginning of your file or at the beginning of one of the files you include.

    This could include the Unicode BOM if you saved the PHP file from a Unicode-aware text editor. If you're using such an editor, make sure your files are saved without BOM. Otherwise just check to make sure there are no blank lines or spaces at the very top of your files.
     
    SmallPotatoes, Jan 20, 2010 IP
    viron86 likes this.
  3. viron86

    viron86 Active Member

    Messages:
    426
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    hi thanks
    i didnt knew about UTF-8 BOM
    thanks problem solved
     
    viron86, Jan 20, 2010 IP