Results 1 to 10 of 10

Thread: PHP HELP!

  1. #1
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default PHP HELP!

    Okay, at top of index1.php I have

    PHP Code:
    <?php
    session_start
    ();
    mysql_connect("localhost","onefouz2_je","je");
    mysql_select_db("onefouz2_je");
    ?>
    and I'm getting this error;

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/onefouz2/public_html/index1.php:1) in /home/onefouz2/public_html/index1.php on line 2

    There's no 'white spaces' anywhere - any ideas?

    Thanks
    Luke

  2. #2
    Join Date
    Apr 2008
    Location
    Derby
    Posts
    4,668
    Tokens
    262

    Latest Awards:

    Default

    It's basically telling you the session has already been begun? I think :s E.g. It's located some sort of a header elsewhere?

  3. #3
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Quote Originally Posted by iApps View Post
    It's basically telling you the session has already been begun? I think :s E.g. It's located some sort of a header elsewhere?
    But there isn't anywhere it could've begun :S

  4. #4

    Default

    Luke you have a man experienced in three years who you've worked with before on your messenger yet you trouble yourself by coming here?

    Sigh...

  5. #5
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Your not using sessions within tht bit of PHP so why have you put "session_start();" there :s

    If you dont need it, remove it problem solved.

    Lew.
    Im not here to be loved, I love to be hated :-}


  6. #6
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by Lewiie15 View Post
    Your not using sessions within tht bit of PHP so why have you put "session_start();" there :s

    If you dont need it, remove it problem solved.

    Lew.
    You never took into consideration that could be a snippet of the code... or its included into another page that requires a database connection and a session (Like a user login?).

    Also, why would he request help for sessions (He was obviously stuck at this point) for you to tell him he doesnt need it, he obviously does *REMOVED*

    "James."

    Edited by Jamesy (Forum Super Moderator): Please do not be rude to other forum members.
    Last edited by Jamesy; 01-03-2010 at 05:48 PM.
    Hi, names James. I am a web developer.

  7. #7
    Join Date
    Sep 2009
    Location
    Hull
    Posts
    827
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    You never took into consideration that could be a snippet of the code... or its included into another page that requires a database connection and a session (Like a user login?).

    Also, why would he request help for sessions (He was obviously stuck at this point) for you to tell him he doesnt need it, he obviously does *REMOVED*

    "James."

    Edited by Jamesy (Forum Super Moderator): Please do not be rude to other forum members.
    I apologise for the assumption... we all assume things lol.

    Maybe he should post abit more?

    Lew.
    Im not here to be loved, I love to be hated :-}


  8. #8

    Default

    The problem is solved actually Protege. I didn't say he didn't need help, either, I just said it wasn't necessary for him to acclaim help here.

    Anyway Luke's lazy, so I'll tell you what he told me. He no longer needs help.

  9. #9
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    It wasnt even aimed at you.
    Hi, names James. I am a web developer.

  10. #10
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    Sorry for any arguments caused.

    There is a database.php but that's just mysql connection, nothing in there besides (no whitespace) so didn't post that.

    Anyways, found a mate who's coding it for me.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •