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

Thread: PHP Help !

  1. #1
    Join Date
    Feb 2006
    Location
    USA
    Posts
    715
    Tokens
    0

    Latest Awards:

    Default PHP Help !

    Last night, i was making a popup radio, and then all the sudden when i put a request line on, this popped up on the stats:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/habble/public_html/panel/frontend/request.php:2) in /home/user/public_html/panel/config.php on line 2

    I cant figure out what is wrong with it, but here is the config file:
    Code:
    <?php
    session_start();
    /*
    * Location Configuration
    */
    $root = "/home/USERNAME/public_html/panel/";
    $url = "http://www.SITE.com/panel/";
    $classes     = $root . "classes/";
    $includes    = $root . "includes/";
    $images      = $url . "images/";
    $css         = $url . "css/";
    $javascript  = $url . "javascript/";
    /* Include Files */
    require_once $classes . "database.php";
    require_once $classes . "core.php";
    /* Define Database Settings */
    $database ["server"] = "localhost";
    $database ["username"] = "USERNAME";
    $database ["password"] = "PASS";
    $database ["database"] = "DATABASE";
    /* Connect */
    $db->connect ( $database ["server"], $database ["username"], $database ["password"], $database ["database"] );
    /* Define Presets */
    $action = @$_GET["action"];
    $myuid = session_id();
    ?>
    Please post and help

  2. #2
    Join Date
    Apr 2008
    Posts
    1,153
    Tokens
    199

    Latest Awards:

    Default

    There is an error on the coding, either the wrong directory folder or it cant find what it is connecting it to, find a site that checks the html and keep editing it. That should do it.

  3. #3
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    post the request code
    Looking for a good desiner to design a social networking template.

    PM me.

  4. #4
    Join Date
    Feb 2006
    Location
    USA
    Posts
    715
    Tokens
    0

    Latest Awards:

    Default

    I fixed it. Inside the file I had sometihng before <?PHP and that is what was causing it.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,153
    Tokens
    199

    Latest Awards:

    Default

    Quote Originally Posted by DJ::Beatz View Post
    I fixed it. Inside the file I had sometihng before <?PHP and that is what was causing it.
    A broken code, no wonder. XD

  6. #6
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by PureGamer View Post
    A broken code, no wonder. XD
    Obviously with an error like that it's going to be a small code issue...

Posting Permissions

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