关于Cookie的问题,大虾帮忙!
wdman 2003-12-29 11:58:23 我的代码如下:
<html>
<head>
<?php
$CuID="hehe";
setcookie("UserID",$CuID);
?>
</head>
<body>
</body>
</html>
报错如下:
Warning: Cannot modify header information - headers already sent by (output started at H:\Apache\Apache2\htdocs\php\testSession.php:5) in H:\Apache\Apache2\htdocs\php\testSession.php on line 7
我把那段代码放到<body>里面也是这样警告,不知道为什么,大虾帮忙!