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!


Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default Cannot modify header information

    Hey,

    I seem to be getting this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/************/public_html/process.php:9) in /home/************/public_html/process.php on line 102
    This is line 102:
    PHP Code:
    header("Refresh: 0;url=page.html"); 
    Thanks to anyone who can help!

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    It seems you have sent out the headers in line 9 aswell, thats the problem

  3. #3
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    $Message=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $Message);if($Name=="" || $Email=="" || $Reason=="" || $Message=="" ){
    Thats line 9

  4. #4
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    ob_start();

    At top of file. T_T
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  5. #5
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    It doesnt matter Ive managed to fix it. Thanks anyway.

  6. #6
    Join Date
    Jun 2004
    Location
    London
    Posts
    116
    Tokens
    0

    Default

    Some scripts like header("") need to be before any output is sent to the browser, else it gives and error.
    If you are really desperate to put it there you can use an iframe (for things like forced downloads)

Posting Permissions

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