
在后台管理,用header("location:");做返回时,总是不能正常返回,
Warning: Cannot modify header information - headers already sent by....
这类语句,baidu了一下,才知道是setcookie在捣乱,以下是在网上找的一些资料:
方法一:
在PHP里Cookie的使用是有一些限制的。
1、使用setcookie必须在<html>标签之前
2、使用setcookie之前,不可以使用echo输入内容
3、直到网页被加载完后,cookie才...