本人设置了一个cookie,其代码如下
<?php
setcookie(*name*,*zhangshan*,time()+ 60);
echo "ok";
可是在网页上却显示为
Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\aprrendre\TMPrglue2.php:6) in D:\wamp\www\aprrendre\TMPrglue2.php on line 8
ok
我一直找不到原因,请问问题到底出在哪里呀?他返回的警告我看得不太明白,谁能告诉我一下,谢谢了。
<?php
setcookie(*name*,*zhangshan*,time()+ 60);
echo "ok";
可是在网页上却显示为
Warning: Cannot modify header information - headers already sent by (output started at D:\wamp\www\aprrendre\TMPrglue2.php:6) in D:\wamp\www\aprrendre\TMPrglue2.php on line 8
ok
我一直找不到原因,请问问题到底出在哪里呀?他返回的警告我看得不太明白,谁能告诉我一下,谢谢了。