Hi,
I don't know how to deal with this error:
PHP Code:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at XXX.php:15) in XXX.php on line 4
my php source code:
PHP Code:
<?php
function username($num){
session_start();
$_SESSION['username']=$num;
}
?>
<!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=utf-8" />
<title>my trial page</title>
</head>
<body>
<?php include ("sidebar.inc") ?>
bla bla
<?php
username(3);
?>
</body>
</html>
Bookmarks