User Tag List

Results 1 to 5 of 5

Thread: What IS Wrong?

  1. #1
    What IS Wrong?

    User Info Menu

    What IS Wrong?

    ok i keep getting this error

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/consolec/public_html/test/index.php:2) in /home/consolec/public_html/test/stat.php on line 2
    here are my source code's

    index.php
    Code:
    <?php 
    // Used For The Session 
    // Try Using a cookie instead of session
    include("stat.php");
     ?>
    
    <table border="2">
    <tr>
    <th>Admin Only </th>
    </tr>
    <tr>
    <td><a href="./reset.php">Reset </a></td>
    
    </tr>
    </table> 
    </html>
    stat.php
    Code:
    <?php
    session_start();
    
    if(isset($_SESSION['views']))
    $_SESSION['views']=$_SESSION['views']+1;
    else
    $_SESSION['views']=1;
    echo "Number of visitors: ". $_SESSION['views'];
    ?>
    Reset.php
    Code:
    <?php
    include ("./index.php");
    session_destroy();
    
    ?> 
    <html>
    <head>
    <meta http-equiv="Refresh" content="10; url=./index.php">
    </head>
    </html>
    What i'm i doing wrong and how can i fix it.

  2. #2
    What IS Wrong?

    User Info Menu

    Re: What IS Wrong?

    Remove this line and see if it still spits out the error:
    <meta http-equiv="Refresh" content="10; url=./index.php">

    Rules are HERE. They have been updated as of May 30th 2013 at 5:00 A.M.
    If you see a topic that a link is broken, the information is no longer correct, the content has been patched, or a rule is being broken please use the button. Thanks.

  3. #3
    What IS Wrong?

    User Info Menu

    Re: What IS Wrong?

    omg it woks now!

  4. #4
    What IS Wrong?

    User Info Menu

    Re: What IS Wrong?

    Quote Originally Posted by [uDc] ImMoRtAl- View Post
    omg it woks now!
    Your welcome.

    Rules are HERE. They have been updated as of May 30th 2013 at 5:00 A.M.
    If you see a topic that a link is broken, the information is no longer correct, the content has been patched, or a rule is being broken please use the button. Thanks.

  5. #5
    What IS Wrong?

    User Info Menu

    Re: What IS Wrong?

    but i didnt take that out =P

Tags for this Thread

Bookmarks

Posting Permissions

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