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.
Bookmarks