Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    man utd lol reina, can u help me with another error

  2. #12
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Ok, Pm me your msn if you like


  3. #13
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Jamie. View Post
    so blob, your saying like this for example your NOT allowed;

    <head><title>Blah</title></head><html><font face="verdana" size="1"> bla bla </font></html>
    <?
    echo("hello world");
    ?>

    Like that so wud it be?
    <?
    echo("hello world");
    ?>
    <head><title>Blah</title></head><html><font face="verdana" size="1"> bla bla </font></html>

    for example, echo being the cookies bit :p


    YEH SHUP K THATS NOT TEH QUESTIon and i broke my shift key "/
    Im not saying that, Im saying this:

    If you have anything that needs a header, like starting sessions cookies or just using header(""); you need to make sure its at the top of the page.

    E.g.

    PHP Code:
    <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
    <?php header("Location: index.php"); ?>
    </body>
    </html>
    That would produce a header error, so you have to use:

    PHP Code:
    <?php header("Location: index.php"); ?>
    <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
    </body>
    </html>
    So its at the top of the page

    But if its at the top of the page, you can still have php above it, like:

    PHP Code:
    <?php 
    $string 
    "insert";
    $stupid "idiots";
    $in "here";
    header("Location: index.php"); 
    ?>
    <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
    </body>
    </html>
    Get what I mean?

  4. #14
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    You can only send headers before you've sent any output to the browser.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  5. #15
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    AHH Thanks for that - it clears it up.

    is that the same for session_start() and ob_start or whatever they are ?

  6. #16
    Join Date
    Mar 2007
    Posts
    41
    Tokens
    0

    Default

    Yep - cookies and sessions must be intiated before any output is sent to the browser, otherwise you better have a raincoat on, because there will be errors.

Page 2 of 2 FirstFirst 12

Posting Permissions

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