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 4 of 4

Thread: PHP - help

  1. #1
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default PHP - help

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/speedan/public_html/SC/sc/inc/config.php:11) in /home/speedan/public_html/SC/sc/inc/auth.php on line 5

    Getting this - Ive checked everythink and nothink!!

    heres the index.php

    Code:
    <?
    include("inc/connect.php"); 
    include("inc/auth.php"); 
    include("inc/common.php");
    include ("inc/config.php");
    
    
    $username = $_SESSION['username'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $sip = $_SERVER['SERVER_ADDR'];
    ?>
    
    <?
    $result = mysql_query("SELECT * FROM users WHERE username='$username'")
    or die(mysql_error());  
    
    $row = mysql_fetch_array( $result );
    $id = $row['id'];
    ?>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>SP Panel Beta .1</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    
    <div class="header">
    <div align="center">
        <div class="headercont">
        <div class="logo"><img src="images/logo.gif" alt="Welcome to JCS Panel" /></div>
        <div class="headerbox"><img src="images/header-text.gif" alt="Welcome to JCS Panel" /></div>
        </div>
    </div>
    </div>
    
    <div align="center">
    <div class="body">
        <div class="bodyarea">
        <div class="left">
            <div class="leftnavhead">
              <div class="navheadtext">SP  Panel Navigation</div>
            </div>
                <div class="navitem"><a href="/sc/admin/index.php" class="navtext2">
                  <div class="navtext">&raquo; Administration</div>
            </a>    </div>            
                <div class="navitem">
                  <div class="navtext">&raquo; Resellers (coming soon) </div>    
                </div>            
                <div class="navitem">
                  <div class="navtext">&raquo; Home</div>    
                </div>            
                <div class="navitem"><a href="/support/index.php" class="navtext2">
                <div class="navtext">&raquo; Home </div>
            </a>    </div>            
                <div class="navitem"><a href="/sc/logout.php" class="navtext2">
                <div class="navtext">&raquo; Logout </div>
            </a>    </div>            
                <div class="navitem"><a href="/us/index.php" class="navtext2">
                <div class="navtext">&raquo; Speed-Networks.net</div>
                </a></div>            
                <div class="leftnavfooter"></div>
        
        </div>
        <div class="right">
            <div class="bodyheader">
              <div class="bodyheadertext">Welcome to your control panel. </div>
            </div>
            <div class="bodytext">
              <p>News:
                <?php include ('http://speed-networks.net/message.php') ?>
              </p>
              <p>This is a Shoutcast control panel, this is not free software, do not null, do not play around with our coding!. </p>
              <table width="135" height="113" border="1">
                <tr>
                  <td width="180"><p><a href="/sc/modules/shoutcast">Manage Shoutcast. </a></p>
                  <p><a href="/sc/modules/autodj">Manange Auto Dj.</a></p>
                  <p><a href="/sc/modules/config/">Edit your profile. </a></p>
                  <p>&nbsp;</p></td>
                </tr>
              </table>
              <p>&nbsp;</p>
            </div>
          </div>
        </div>
        <img src="images/divider.gif" width="800" height="1" />
        <div class="footer"></div>
    </div>
    
    <div class="footertext">Copyright 2007 of Joe Comins and Speed-Networks.net. All Rights Reserved.</div>
    
    </div>
    
    </body>
    </html>
    thanks to anybody who can help!

  2. #2
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default

    found out why it wasnt working - closed

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

    Latest Awards:

    Default

    Does it have anything to do with whitespace?



    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)


  4. #4
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    Quote Originally Posted by NintendoNews View Post
    Does it have anything to do with whitespace?
    It gave an error because session_start(); wasn't before all other code.


    You don't like me
    Chances are I don't like you.

Posting Permissions

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