<?php
setcookie("mr",'MYKYLE');
echo "读取cookie".$_COOKIE['mr'];?>
简单的代码,为什么会报错
Warning: Cannot modify header information - headers already sent by (output started at D:\PHP\index.php:7) in D:\PHP\index.php on line 19
setcookie("mr",'MYKYLE');
echo "读取cookie".$_COOKIE['mr'];?>
简单的代码,为什么会报错
Warning: Cannot modify header information - headers already sent by (output started at D:\PHP\index.php:7) in D:\PHP\index.php on line 19
解决方案 »
- jquery 超级select 插件 v3.0.0.0插件 支持汉字、拼音、英文快速定位查询的超级select插件。可方向键、tab 键快速选择。
- 99分求一个无限分类算法的类
- linux下装php怎么这么麻烦啊,折腾一下午都装不上,郁闷死了!!!散精~
- 请问 如何判断一个数组为空?
- 【超奇怪的问题】我做了一个搜索的程序,用回车提交summit会搜出所有的内容...
- 从数据库提取数据显示的问题
- 表单值联动的问题,请高手指点.
- $array[title]怎样进行字符截取?subStr()不能用呢?
- 求一个解析<tr><td>的正则表达式
- 如何防止IE打开EXCEL,在下载EXCEl文档的时候?
- mysql float怎样保存小数啊
- web开发需要重学C吗?
<!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 kyle</title>
</head>
<?php
setcookie("mr",'MYKYLE');echo "读取cookie".$_COOKIE['mr'];?>
<body>
</body>
</html>