session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at E:\Program Files\Apache Group\Apache2\htdocs\hotMusic\index\index.php:7) in E:\Program Files\Apache Group\Apache2\htdocs\hotMusic\index\index.php on line 8 他老是报我session_start();这个的错什么意思啊 晕
<?php
session_start();
$_SESSION['userName']="abcd";
$_SESSION['password']=1234;
?>
<a href="b.php">b.php</a>b.php
<?php
session_start();
echo $_SESSION['userName'];
echo "<br>";
echo $_SESSION['password'];
?>
他老是报我session_start();这个的错什么意思啊 晕
<head>
<title>热力红人</title>
</head>
<?php
/* session_start();
echo $_SESSION['userName'];*/
// 启动会话,这步必不可少
session_start();是在这里啊 前面没有输出啊
/* session_start();
echo $_SESSION['userName'];*/
// 启动会话,这步必不可少
session_start();
----------------
放到最前面去
结贴啊,可不能这么发帖的啊