COOKIE是不是有局域性 A cookie is domain and path specificif you want to access cookies from other paths, try to add a path of "/" to them, for example"name=value; path=/;" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 cookie默认作用域为当前目录和子目录,可以加上路径来控制作用域.例如,下面让sess_name可以作用于整个站点setcookie("sess_name","xxx",time()+30000,"/"); setcookie是不是也象header一样,都不能向浏览器输出任何东西前用setcookie,对吧可是我在一开始都用setcookie,但是还是说Warning: Cannot add header information - headers already sent by (output started at /home/simple/index13.php:2) in /home/simple/index13.php on line 16请问指的是什么呢 setcookie前面不能有任何输出,包括空格空行 如何区分domain:www.bxshjc.com和domain:bxshjc.com 关于PHP的几个warning! 一个href标签,传递post 散分 400分讨论精简ZF php中的画图问题 我自己有一个固定IP, 但是怎么连接SQL SERVR 2000数据库啊! 某公司招聘考试题 正则又遇到问题:( 一个替换串 大家帮忙给看看。 防止同一用户在同一时间登录,大家有什么好办法? $_SERVER['REMOTE_ADDR']返回值为::1怎么改成ipv4的ip地址 请问apache运行正常,能运行*.php文件,但是不能执行php代码,为什么? 如何编写上传页面?
例如,下面让sess_name可以作用于整个站点
setcookie("sess_name","xxx",time()+30000,"/");
可是我在一开始都用setcookie,但是还是说
Warning: Cannot add header information - headers already sent by (output started at /home/simple/index13.php:2) in /home/simple/index13.php on line 16
请问指的是什么呢