我的session无法正确设置cookie????
急!我在windows2K下安装了php,apache,mysql,当我开启apache后
打开php文件出现了以下错误?请指教!
Warning: session_start() [function.session-start]: open(D:\PHP4\sessiondata\sess_18403d8254d5d0c3ccf92f121a4e0aae, O_RDWR) failed: No such file or directory (2) in d:\apache\htdocs\lltj\register.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at d:\apache\htdocs\lltj\register.php:2) in d:\apache\htdocs\lltj\register.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at d:\apache\htdocs\lltj\register.php:2) in d:\apache\htdocs\lltj\register.php on line 2
Notice: Undefined variable: nowmac in d:\apache\htdocs\lltj\register.php on line 368
下面是我的源文件摘要:
<?php
session_start(); 《-------这就是第二行了。
?>
<TR>
<TH BGCOLOR="#d0d7af">
<DIV CLASS="text"><font color="#ff0033">*</font> 联系地址</DIV>
</TH>
<TD COLSPAN=3 BGCOLOR="#fafafa">
<DIV CLASS="text">
<INPUT TYPE="text" NAME="addr" VALUE="" SIZE=47 MAXLENGTH=100 STYLE='background-color:white;height=19;font-size:9pt;border:#a0a070 1px solid;'>
</DIV>
</TD>
</TR>
以上是365-376
各位老大帮帮忙!谢谢!